Skip to content

Commit

Permalink
More comment for constant
Browse files Browse the repository at this point in the history
  • Loading branch information
shanretoo committed May 25, 2024
1 parent 7b639c9 commit 46cff4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parse/text/simple_extensions/argument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl From<EnumerationArg> for simple_extensions::EnumerationArg {

impl From<EnumerationArg> for simple_extensions::ArgumentsItem {
fn from(value: EnumerationArg) -> Self {
simple_extensions::ArgumentsItem::EnumerationArg(value.into())
value.into()
}
}

Expand Down Expand Up @@ -254,6 +254,7 @@ impl ValueArg {
}

/// Returns the constant of this argument.
/// Defaults to false if the underlying value is `None`.
///
/// See [simple_extensions::ValueArg::constant].
pub fn constant(&self) -> bool {
Expand Down

0 comments on commit 46cff4e

Please sign in to comment.