diff --git a/src/lib.rs b/src/lib.rs index 2412aba0..a8e56339 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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> { -//! #[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) +//! # } //! } //! ``` //!