Skip to content

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akmadan23 committed Oct 17, 2023
1 parent daaaac1 commit 83f7928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flags/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Configurable<Self> for Literal {
/// Get a potential `Literal` value from [Cli].
///
/// If the "literal" argument is passed, this returns a `Literal` with value `true` in a
/// [Some]. Otherwise this returns `Literal` with value `false` in a [Some].
/// [Some]. Otherwise this returns `None`.
fn from_cli(cli: &Cli) -> Option<Self> {
if cli.literal {
Some(Self(true))
Expand All @@ -27,7 +27,7 @@ impl Configurable<Self> for Literal {
///
/// If the `Config::indicators` has value,
/// this returns its value as the value of the `Literal`, in a [Some].
/// Otherwise this returns `Literal` with value `false` in a [Some].
/// Otherwise this returns `None`.
fn from_config(config: &Config) -> Option<Self> {
if let Some(value) = config.literal {
Some(Self(value))
Expand Down

0 comments on commit 83f7928

Please sign in to comment.