From 462c5ada4ad5539b50e2fdd85846b57cf44591d3 Mon Sep 17 00:00:00 2001 From: rustco Date: Thu, 20 Jun 2024 11:40:13 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: rustco --- CONTRIBUTING.md | 2 +- clap_builder/src/parser/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c80815f516..df4f1771196 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -59,7 +59,7 @@ Some practices to avoid breaking changes time table and allow us to process feedback from early adopters before requiring everyone to process them on the next major version. - Please keep API addition and deprecation in separate commits in a PR to make it easier to review -- Develop the feature behind an `unstable-` feature flag with a stablization tracking issue (e.g. [Multicall Tracking issue](https://github.com/clap-rs/clap/issues/2861)) +- Develop the feature behind an `unstable-` feature flag with a stabilization tracking issue (e.g. [Multicall Tracking issue](https://github.com/clap-rs/clap/issues/2861)) ### Version Support Policy diff --git a/clap_builder/src/parser/parser.rs b/clap_builder/src/parser/parser.rs index c3ea84d86a4..69970683ef3 100644 --- a/clap_builder/src/parser/parser.rs +++ b/clap_builder/src/parser/parser.rs @@ -677,7 +677,7 @@ impl<'cmd> Parser<'cmd> { debug!("Parser::is_new_arg: -- found"); true } else if next.is_short() { - // If this is a short flag, this is a new arg. But a singe '-' by + // If this is a short flag, this is a new arg. But a single '-' by // itself is a value and typically means "stdin" on unix systems. debug!("Parser::is_new_arg: - found"); true