Skip to content

Commit

Permalink
getopts: Simplify assignment error message
Browse files Browse the repository at this point in the history
The printed value is already quoted, so there is no need to quote it
again.
  • Loading branch information
magicant committed Jul 14, 2024
1 parent 35160ce commit cd69bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yash-builtin/src/getopts/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Error {
annotations.push(Annotation::new(
AnnotationType::Info,
format!(
"the built-in needs to update the variable to `{}`",
"the built-in needs to update the variable to {}",
new_value.quote()
)
.into(),
Expand Down

0 comments on commit cd69bbb

Please sign in to comment.