Skip to content

Commit

Permalink
docs: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ciffelia committed Apr 4, 2024
1 parent 233451b commit 7a74274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let id: Nanoid = "3hYR3muA_xvjMrrrqFWxF".parse()?;
let id: Nanoid = "iH26rJ8CpRz-gfIh7TSRu".to_string().try_into()?;
```

If you have a constant Nano ID, you can use the [`nanoid`] macro to parse it at compile time.
If the Nano ID string is constant, you can also use the [`nanoid`] macro to parse it at compile time.

```rust
use nid::{nanoid, Nanoid};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
//!
//! If you have a constant Nano ID, you can use the [`nanoid`] macro to parse it at compile time.
//! If the Nano ID string is constant, you can also use the [`nanoid`] macro to parse it at compile time.
//!
//! ```
//! use nid::{nanoid, Nanoid};
Expand Down

0 comments on commit 7a74274

Please sign in to comment.