Skip to content

Commit 0f254bb

Browse files
committed
docs: Clarify return type of lookup_project_file
1 parent 98726d0 commit 0f254bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/rustfmt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ enum Operation {
4343
Stdin(String, WriteMode),
4444
}
4545

46-
/// Try to find a project file in the given directory and its parents.
46+
/// Try to find a project file in the given directory and its parents. Returns the path of a the
47+
/// nearest project file if one exists, or `None` if no project file was found.
4748
fn lookup_project_file(dir: &Path) -> io::Result<Option<PathBuf>> {
4849
let mut current = if dir.is_relative() {
4950
try!(env::current_dir()).join(dir)

0 commit comments

Comments
 (0)