Skip to content

Commit

Permalink
Fixing typos
Browse files Browse the repository at this point in the history
As mentioned in #2
  • Loading branch information
thepacketgeek authored and Mat Wood committed Dec 3, 2023
1 parent ba8b57f commit 59767fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ value=testing
```

## Compatible Types
[`MaybeStdin`] can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
[`MaybeStdin`] can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
```rust
use std::path::PathBuf;
use clap::Parser;
Expand Down Expand Up @@ -78,7 +78,7 @@ contents=testing
```

## Compatible Types
[`FileOrStdin`] can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
[`FileOrStdin`] can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
```rust
use std::path::PathBuf;
use clap::Parser;
Expand Down
4 changes: 2 additions & 2 deletions src/file_or_stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};

/// Wrapper struct to either read in a file or contents from `stdin`
///
/// `FileOrStdin` can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
/// `FileOrStdin` can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
/// ```rust
/// use std::path::PathBuf;
/// use clap::Parser;
Expand All @@ -31,7 +31,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};
/// ```sh
/// $ ./example <filename>
/// <filename> contents
/// ``o
/// ```
#[derive(Clone)]
pub struct FileOrStdin<T = String> {
inner: T,
Expand Down
2 changes: 1 addition & 1 deletion src/maybe_stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{StdinError, STDIN_HAS_BEEN_USED};

/// Wrapper struct to parse arg values from `stdin`
///
/// `MaybeStdin` can wrap any time that matches the trait bounds for `Arg`: `FromStr` and `Clone`
/// `MaybeStdin` can wrap any type that matches the trait bounds for `Arg`: `FromStr` and `Clone`
/// ```rust
/// use std::path::PathBuf;
/// use clap::Parser;
Expand Down

0 comments on commit 59767fd

Please sign in to comment.