Skip to content

Commit d98c8f1

Browse files
authored
Merge pull request #941 from LemmingAvalanche/eg
Add an empty-iterator example argument
2 parents 3df7e81 + 22ef359 commit d98c8f1

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)