Skip to content

Commit 3e13152

Browse files
committed
improve docs slightly
1 parent 3c65ea3 commit 3e13152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-refspec/src/match_group/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct Matcher<'a> {
1313

1414
impl<'a> Matcher<'a> {
1515
/// Match `item` against this spec and return `(true, Some<rhs>)` to gain the other side of the match as configured, or `(true, None)`
16-
/// if there was no `rhs`.
16+
/// if there was no `rhs` but the `item` matched. Lastly, return `(false, None)` if `item` didn't match at all.
1717
///
1818
/// This may involve resolving a glob with an allocation, as the destination is built using the matching portion of a glob.
1919
pub fn matches_lhs(&self, item: Item<'_>) -> (bool, Option<Cow<'a, BStr>>) {

0 commit comments

Comments
 (0)