Skip to content

Commit

Permalink
Merge pull request #4384 from epage/consistent
Browse files Browse the repository at this point in the history
fix(error): Be consistent in puncutation
  • Loading branch information
epage committed Oct 13, 2022
2 parents 6422046 + 0f3c98a commit 0f6ef30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/error/format.rs
Expand Up @@ -149,7 +149,7 @@ fn write_dynamic_context(error: &crate::error::Error, styled: &mut StyledStr) ->
if let Some(ContextValue::String(invalid_arg)) = invalid_arg {
styled.none("Equal sign is needed when assigning values to '");
styled.warning(invalid_arg);
styled.none("'.");
styled.none("'");
true
} else {
false
Expand Down
2 changes: 1 addition & 1 deletion tests/builder/empty_values.rs
Expand Up @@ -118,7 +118,7 @@ fn no_empty_values_without_equals_but_requires_equals() {
assert_eq!(m.unwrap_err().kind(), ErrorKind::NoEquals);

static NO_EUQALS_ERROR: &str =
"error: Equal sign is needed when assigning values to '--config=<config>'.
"error: Equal sign is needed when assigning values to '--config=<config>'
Usage: config [OPTIONS]
Expand Down
3 changes: 1 addition & 2 deletions tests/builder/opts.rs
Expand Up @@ -21,8 +21,7 @@ fn require_equals_fail() {
#[test]
#[cfg(feature = "error-context")]
fn require_equals_fail_message() {
static NO_EQUALS: &str =
"error: Equal sign is needed when assigning values to '--config=<cfg>'.
static NO_EQUALS: &str = "error: Equal sign is needed when assigning values to '--config=<cfg>'
Usage: prog [OPTIONS]
Expand Down

0 comments on commit 0f6ef30

Please sign in to comment.