Skip to content

Commit 4d19f24

Browse files
committed
Improve function docs for Repository::tag_foreach
1 parent 1d9f4d4 commit 4d19f24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/repo.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,8 +2043,10 @@ impl Repository {
20432043
}
20442044
}
20452045

2046-
/// iterate over all tags calling `cb` on each.
2047-
/// the callback is provided the tag id and name
2046+
/// Iterate over all tags, calling the callback `cb` on each.
2047+
/// The arguments of `cb` are the tag id and name, in this order.
2048+
///
2049+
/// Returning `false` from `cb` causes the iteration to break early.
20482050
pub fn tag_foreach<T>(&self, cb: T) -> Result<(), Error>
20492051
where
20502052
T: FnMut(Oid, &[u8]) -> bool,

0 commit comments

Comments
 (0)