fix v8 example

This commit is contained in:
Rick Richardson 2022-08-31 12:20:05 -07:00
parent 9a7c5e9b97
commit 1e47d40631
No known key found for this signature in database
GPG Key ID: 9FB06D29B7C22B54

View File

@ -19,7 +19,7 @@ impl Uuid {
/// assert_eq!(Some(Version::Custom), uuid.get_version());
/// ```
pub fn new_v8(buf: [u8; 16]) -> Uuid {
Builder(Uuid::from_bytes(buf))
Builder::from_bytes(buf)
.with_variant(Variant::RFC4122)
.with_version(Version::Custom)
.into_uuid()