Skip to content

Commit

Permalink
std::flag: fix compilation error of the add[T] method of the FlagSet
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Apr 3, 2024
1 parent 8150416 commit 44dc715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/flag/flag.jule
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl FlagSet {
// - str
// - bool
pub fn add[T](mut self, name: str, short: rune, default: T, what: str): &T {
let mut flag = self.add_flag_common[T](name, short, default, what)
let mut flag = self.add_flag_common[T](name, short, what)
flag._data = new(T, default)
ret flag._data
}
Expand Down

0 comments on commit 44dc715

Please sign in to comment.