From a637d96d8274bbfaa28b1c5238bc725f50f8c457 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Thu, 1 Apr 2021 17:41:17 -0400 Subject: [PATCH] Fix minor typos in 10_default_values.rs --- examples/10_default_values.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/10_default_values.rs b/examples/10_default_values.rs index 57031933..a6054c40 100644 --- a/examples/10_default_values.rs +++ b/examples/10_default_values.rs @@ -1,7 +1,7 @@ use clap::{App, Arg}; fn main() { - // There are two ways in which to get a default value, one is to use claps Arg::default_value + // There are two ways in which to get a default value, one is to use clap's Arg::default_value // method, and the other is to use Rust's built in Option::unwrap_or method. // // I'll demo both here. @@ -30,7 +30,7 @@ fn main() { ) .get_matches(); - // It's safe to call unwrap because the value with either be what the user input at runtime + // It's safe to call unwrap because the value will either be what the user input at runtime // or "input.txt" let input = matches.value_of("INPUT").unwrap();