Skip to content

Commit 22ef359

Browse files
Add an empty-iterator example argument
1 parent 3df7e81 commit 22ef359

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/repo.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ impl Repository {
198198
///
199199
/// ceiling_dirs specifies a list of paths that the search through parent
200200
/// directories will stop before entering. Use the functions in std::env
201-
/// to construct or manipulate such a path list.
201+
/// to construct or manipulate such a path list. (You can use `&[] as
202+
/// &[&std::ffi::OsStr]` as an argument if there are no ceiling
203+
/// directories.)
202204
pub fn open_ext<P, O, I>(
203205
path: P,
204206
flags: RepositoryOpenFlags,

0 commit comments

Comments
 (0)