File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ value=testing
3232```
3333
3434## Compatible Types
35- [ ` MaybeStdin ` ] can wrap any time that matches the trait bounds for ` Arg ` : ` FromStr ` and ` Clone `
35+ [ ` MaybeStdin ` ] can wrap any type that matches the trait bounds for ` Arg ` : ` FromStr ` and ` Clone `
3636``` rust
3737use std :: path :: PathBuf ;
3838use clap :: Parser ;
@@ -78,7 +78,7 @@ contents=testing
7878```
7979
8080## Compatible Types
81- [ ` FileOrStdin ` ] can wrap any time that matches the trait bounds for ` Arg ` : ` FromStr ` and ` Clone `
81+ [ ` FileOrStdin ` ] can wrap any type that matches the trait bounds for ` Arg ` : ` FromStr ` and ` Clone `
8282``` rust
8383use std :: path :: PathBuf ;
8484use clap :: Parser ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};
77
88/// Wrapper struct to either read in a file or contents from `stdin`
99///
10- /// `FileOrStdin` can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
10+ /// `FileOrStdin` can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
1111/// ```rust
1212/// use std::path::PathBuf;
1313/// use clap::Parser;
@@ -31,7 +31,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};
3131/// ```sh
3232/// $ ./example <filename>
3333/// <filename> contents
34- /// ``o
34+ /// ```
3535#[ derive( Clone ) ]
3636pub struct FileOrStdin < T = String > {
3737 inner : T ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};
66
77/// Wrapper struct to parse arg values from `stdin`
88///
9- /// `MaybeStdin` can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
9+ /// `MaybeStdin` can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
1010/// ```rust
1111/// use std::path::PathBuf;
1212/// use clap::Parser;
You can’t perform that action at this time.
0 commit comments