mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-10-02 15:24:57 +00:00
Enable doc testing of Uuid::new_v4 example
The doc testing of the Uuid::new_v4() example was currently disabled, but after fixing the errors in df0dc49 the test is now working again.
This commit is contained in:
parent
df0dc490ff
commit
a0dcc9bf34
@ -87,7 +87,7 @@
|
|||||||
//!
|
//!
|
||||||
//! To create a new random (V4) UUID and print it out in hexadecimal form:
|
//! 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.
|
//! // Note that this requires the `v4` feature enabled in the uuid crate.
|
||||||
//!
|
//!
|
||||||
//! use uuid::Uuid;
|
//! use uuid::Uuid;
|
||||||
@ -95,7 +95,7 @@
|
|||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! # #[cfg(feature = "v4")] {
|
//! # #[cfg(feature = "v4")] {
|
||||||
//! let my_uuid = Uuid::new_v4();
|
//! let my_uuid = Uuid::new_v4();
|
||||||
//! println!("{}", my_uuid);
|
//! println!("{}", my_uuid)
|
||||||
//! # }
|
//! # }
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user