diff --git a/README.md b/README.md index 0a0756ed..88cb13f5 100644 --- a/README.md +++ b/README.md @@ -53,10 +53,11 @@ Example usage: ```rust,ignore use foundry_compilers::{Project, ProjectPathsConfig}; +use std::path::Path; // configure the project with all its paths, solc, cache etc. let project = Project::builder() - .paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap()) + .paths(ProjectPathsConfig::hardhat(Path::new(env!("CARGO_MANIFEST_DIR"))).unwrap()) .build(Default::default()) .unwrap(); let output = project.compile().unwrap();