chore(abigen): fix doctest

This commit is contained in:
Georgios Konstantopoulos 2020-06-11 12:16:36 +03:00
parent 7020dc18fb
commit a1096f8705
No known key found for this signature in database
GPG Key ID: FA607837CD26EDBC
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ use std::{collections::HashMap, fs::File, io::Write, path::Path};
/// bindings inside, which exports an `ERC20Token` struct, along with all its events. /// bindings inside, which exports an `ERC20Token` struct, along with all its events.
/// ///
/// ```no_run /// ```no_run
/// # use ethers_contract_abigen::Abigen;
/// # fn foo() -> Result<(), Box<dyn std::error::Error>> { /// # fn foo() -> Result<(), Box<dyn std::error::Error>> {
/// Abigen::new("ERC20Token", "./abi.json")?.generate()?.write_to_file("token.rs")?; /// Abigen::new("ERC20Token", "./abi.json")?.generate()?.write_to_file("token.rs")?;
/// # Ok(()) /// # Ok(())