Update src/build/arg/mod.rs

Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
This commit is contained in:
Ivan Tham 2020-05-25 21:06:22 +08:00 committed by GitHub
parent a189770e1c
commit 270f9ce37f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2915,7 +2915,7 @@ impl<'help> Arg<'help> {
/// ```rust
/// # use clap::{Arg, ArgSettings};
/// Arg::new("config")
/// .required() // equivalent to .setting(ArgSettings::Required)
/// .required(true) // equivalent to .setting(ArgSettings::Required)
/// # ;
/// ```
///