Skip to content

Commit fb311e7

Browse files
author
David Ungar
authored
Merge pull request #268 from davidungar/small-comment
Add comment to `getLast` to explain `mutating`
2 parents 6f4eaf1 + 5fc4246 commit fb311e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftOptions/ParsedOptions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ extension ParsedOptions {
306306
}
307307

308308
/// Get the last parsed option within the given option group.
309+
/// FIXME: Should mark the gotten option as "used". That's why must be `mutating`
309310
public mutating func getLast(in group: Option.Group) -> ParsedOption? {
310311
return groupIndex[group]?.last
311312
}

0 commit comments

Comments
 (0)