From dd7da6d0b63e2659ec387df339237c30bca3e419 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 7 Dec 2022 08:04:15 +0800 Subject: [PATCH] Fix typos Found via `typos --format brief` --- CHANGELOG.md | 10 +++++----- tests/options.rs | 2 +- tests/rename_all_env.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30353f8a..b933d057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -449,7 +449,7 @@ fn main() { ### Don't special case `u64` by [@SergioBenitez](https://github.com/SergioBenitez) -If you are using a `u64` in your struct to get the number of occurence of a flag, you should now add `parse(from_occurrences)` on the flag. +If you are using a `u64` in your struct to get the number of occurrence of a flag, you should now add `parse(from_occurrences)` on the flag. For example ```rust @@ -470,11 +470,11 @@ There was no reason to take the argument by value. Most of the StructOpt users w ### Fail if attributes are not used by [@TeXitoi](https://github.com/TeXitoi) -StructOpt was quite fuzzy in its attribute parsing: it was only searching for interresting things, e. g. something like `#[structopt(foo(bar))]` was accepted but not used. It now fails the compilation. +StructOpt was quite fuzzy in its attribute parsing: it was only searching for interesting things, e. g. something like `#[structopt(foo(bar))]` was accepted but not used. It now fails the compilation. -You should have nothing to do here. This breaking change may highlight some missuse that can be bugs. +You should have nothing to do here. This breaking change may highlight some misuse that can be bugs. -In future versions, if there is cases that are not highlighed, they will be considerated as bugs, not breaking changes. +In future versions, if there is cases that are not highlighted, they will be considerated as bugs, not breaking changes. ### Use `raw()` wrapping instead of `_raw` suffixing by [@TeXitoi](https://github.com/TeXitoi) @@ -522,7 +522,7 @@ You have to change `foo_raw = "bar", baz_raw = "foo"` by `raw(foo = "bar", baz = # v0.1.1 (2017-09-22) -* Better formating of multiple authors by [@killercup](https://github.com/killercup) +* Better formatting of multiple authors by [@killercup](https://github.com/killercup) # v0.1.0 (2017-07-17) diff --git a/tests/options.rs b/tests/options.rs index 803abb46..5184134c 100644 --- a/tests/options.rs +++ b/tests/options.rs @@ -115,7 +115,7 @@ fn options() { } #[test] -fn empy_default_value() { +fn empty_default_value() { #[derive(StructOpt, PartialEq, Debug)] struct Opt { #[structopt(short, default_value = "")] diff --git a/tests/rename_all_env.rs b/tests/rename_all_env.rs index 1979e84f..ad5776b9 100644 --- a/tests/rename_all_env.rs +++ b/tests/rename_all_env.rs @@ -37,7 +37,7 @@ fn overridable() { be_nice: String, #[structopt(rename_all_env = "pascal", env)] - be_agressive: String, + be_aggressive: String, } let help = get_help::();