]> git.lizzy.rs Git - rust.git/commitdiff
Improve doc comment
authorhyd-dev <yd-huang@outlook.com>
Sun, 27 Jun 2021 15:09:10 +0000 (23:09 +0800)
committerhyd-dev <yd-huang@outlook.com>
Sun, 27 Jun 2021 15:10:09 +0000 (23:10 +0800)
cargo-miri/bin.rs

index d0ab82732427c75d0f9d08722a4a44438821020c..8d2065c8eeb4f36d9fa2c9f8190e94f011eb74d2 100644 (file)
@@ -113,7 +113,7 @@ fn has_arg_flag(name: &str) -> bool {
 }
 
 /// Yields all values of command line flag `name` as `Ok(arg)`, and all other arguments except
-/// the flag as `Err(arg)`.
+/// the flag as `Err(arg)`. (The flag `name` itself is not yielded at all, only its values are.)
 struct ArgSplitFlagValue<'a, I> {
     args: TakeWhile<I, fn(&String) -> bool>,
     name: &'a str,