From 061695a2abcf17ca05158548a5a4e5d1464baa87 Mon Sep 17 00:00:00 2001 From: AlexK Date: Mon, 7 Mar 2022 10:01:15 +0400 Subject: [PATCH] fix doctest --- ethers-solc/src/compile/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-solc/src/compile/mod.rs b/ethers-solc/src/compile/mod.rs index 9841fcc6..ce57610d 100644 --- a/ethers-solc/src/compile/mod.rs +++ b/ethers-solc/src/compile/mod.rs @@ -425,7 +425,7 @@ impl Solc { /// # fn main() -> Result<(), Box> { /// use ethers_solc::{CompilerInput, Solc}; /// let solc = Solc::default(); - /// let input = CompilerInput::new("./contracts")?; + /// let input = CompilerInput::new("./contracts")?[0].clone(); /// let output = solc.compile_exact(&input)?; /// # Ok(()) /// # }