Merge pull request #4384 from epage/consistent

fix(error): Be consistent in puncutation
This commit is contained in:
Ed Page 2022-10-13 14:11:02 -05:00 committed by GitHub
commit 0f6ef3003d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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]

View file

@ -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]