From f89c8f4da2e5bba8a717364b60dde0d8a44eb17e Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 1 Mar 2022 23:19:14 -0600 Subject: [PATCH] Fix a typo in an example --- examples/tutorial_builder/04_04_custom.rs | 2 +- examples/tutorial_builder/README.md | 4 ++-- examples/tutorial_derive/04_04_custom.rs | 2 +- examples/tutorial_derive/README.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/tutorial_builder/04_04_custom.rs b/examples/tutorial_builder/04_04_custom.rs index 67cc6738..21e1e7d2 100644 --- a/examples/tutorial_builder/04_04_custom.rs +++ b/examples/tutorial_builder/04_04_custom.rs @@ -47,7 +47,7 @@ fn main() { _ => { cmd.error( ErrorKind::ArgumentConflict, - "Cam only modify one version field", + "Can only modify one version field", ) .exit(); } diff --git a/examples/tutorial_builder/README.md b/examples/tutorial_builder/README.md index 9798a242..5ad8cd38 100644 --- a/examples/tutorial_builder/README.md +++ b/examples/tutorial_builder/README.md @@ -605,7 +605,7 @@ OPTIONS: $ 04_04_custom ? failed -error: Cam only modify one version field +error: Can only modify one version field USAGE: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] @@ -617,7 +617,7 @@ Version: 2.2.3 $ 04_04_custom --major --minor ? failed -error: Cam only modify one version field +error: Can only modify one version field USAGE: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] diff --git a/examples/tutorial_derive/04_04_custom.rs b/examples/tutorial_derive/04_04_custom.rs index d42d22bd..a03345b8 100644 --- a/examples/tutorial_derive/04_04_custom.rs +++ b/examples/tutorial_derive/04_04_custom.rs @@ -60,7 +60,7 @@ fn main() { let mut cmd = Cli::command(); cmd.error( ErrorKind::ArgumentConflict, - "Cam only modify one version field", + "Can only modify one version field", ) .exit(); } diff --git a/examples/tutorial_derive/README.md b/examples/tutorial_derive/README.md index dc242bfc..70ca937e 100644 --- a/examples/tutorial_derive/README.md +++ b/examples/tutorial_derive/README.md @@ -577,7 +577,7 @@ OPTIONS: $ 04_04_custom_derive ? failed -error: Cam only modify one version field +error: Can only modify one version field USAGE: clap [OPTIONS] [INPUT_FILE] @@ -589,7 +589,7 @@ Version: 2.2.3 $ 04_04_custom_derive --major --minor ? failed -error: Cam only modify one version field +error: Can only modify one version field USAGE: clap [OPTIONS] [INPUT_FILE]