Skip to content

Commit 59767fd

Browse files
thepacketgeekMat Wood
authored andcommitted
Fixing typos
As mentioned in #2
1 parent ba8b57f commit 59767fd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3737
use std::path::PathBuf;
3838
use 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
8383
use std::path::PathBuf;
8484
use clap::Parser;

src/file_or_stdin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)]
3636
pub struct FileOrStdin<T = String> {
3737
inner: T,

src/maybe_stdin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)