Skip to content

Commit

Permalink
Merge pull request #521 from Tehnix/master
Browse files Browse the repository at this point in the history
Update Uuid::new_v4 documentation to reflect `Try` no longer being implemented
  • Loading branch information
KodrAus committed Aug 3, 2021
2 parents 3b5f6ad + a0dcc9b commit c735394
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/lib.rs
Expand Up @@ -87,17 +87,16 @@
//!
//! To create a new random (V4) UUID and print it out in hexadecimal form:
//!
//! ```ignore,rust
//! ```rust
//! // Note that this requires the `v4` feature enabled in the uuid crate.
//!
//! use uuid::Uuid;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! #[cfg(feature = "v4")] {
//! let my_uuid = Uuid::new_v4()?;
//! println!("{}", my_uuid);
//! }
//! Ok(())
//! fn main() {
//! # #[cfg(feature = "v4")] {
//! let my_uuid = Uuid::new_v4();
//! println!("{}", my_uuid)
//! # }
//! }
//! ```
//!
Expand Down

0 comments on commit c735394

Please sign in to comment.