docs: Clarify return type of lookup_project_file
This commit is contained in:
parent
98726d0a53
commit
0f254bb343
@ -43,7 +43,8 @@ enum Operation {
|
||||
Stdin(String, WriteMode),
|
||||
}
|
||||
|
||||
/// Try to find a project file in the given directory and its parents.
|
||||
/// Try to find a project file in the given directory and its parents. Returns the path of a the
|
||||
/// nearest project file if one exists, or `None` if no project file was found.
|
||||
fn lookup_project_file(dir: &Path) -> io::Result<Option<PathBuf>> {
|
||||
let mut current = if dir.is_relative() {
|
||||
try!(env::current_dir()).join(dir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user