diff --git a/P0959.md b/P0959.md index a3c46b1..845a7f6 100644 --- a/P0959.md +++ b/P0959.md @@ -184,7 +184,7 @@ assert(id.has_value() && id.value().is_nil()); Member functions `variant()` and `version()` allow checking the variant type of the uuid and, respectively, the version type. These are defined by two strongly typed enums called `uuid_variant` and `uuid_version`. ```cpp -uuid id = uuid::from_string("47183823-2574-4bfd-b411-99ed177d3e43"); +uuid id = uuid::from_string("47183823-2574-4bfd-b411-99ed177d3e43").value(); assert(id.version() == uuid_version::random_number_based); assert(id.variant() == uuid_variant::rfc); ```