Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ciffelia committed Apr 14, 2024
1 parent e93e36d commit 8cc05b0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@
//!
//! ```
//! use nid::Nanoid;
//!
//! // From &str
//! let id: Nanoid = Nanoid::try_from_str("K8N4Q7MNmeHJ-OHHoVDcz")?;
//! let id: Nanoid = "3hYR3muA_xvjMrrrqFWxF".parse()?;
//!
//! // From String
//! let id: Nanoid = "iH26rJ8CpRz-gfIh7TSRu".to_string().try_into()?;
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
Expand Down Expand Up @@ -124,12 +120,8 @@ use alphabet::{Alphabet, AlphabetExt, Base64UrlAlphabet};
///
/// ```
/// use nid::Nanoid;
///
/// // From &str
/// let id: Nanoid = Nanoid::try_from_str("K8N4Q7MNmeHJ-OHHoVDcz")?;
/// let id: Nanoid = "3hYR3muA_xvjMrrrqFWxF".parse()?;
///
/// // From String
/// let id: Nanoid = "iH26rJ8CpRz-gfIh7TSRu".to_string().try_into()?;
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
Expand Down

0 comments on commit 8cc05b0

Please sign in to comment.