docs: Clarify return type of lookup_project_file

This commit is contained in:
Kamal Marhubi 2016-02-01 12:55:12 -05:00
parent 98726d0a53
commit 0f254bb343

View File

@ -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)