diff --git a/components/uid.rst b/components/uid.rst index 94a21955d4b..f2fcd074533 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -137,7 +137,7 @@ Instantiate the ``Ulid`` class to generate a random ULID value:: $ulid = new Ulid(); // e.g. 01AN4Z07BY79KA1307SR9X4MV3 -If your UUID is generated by another system, use the ``fromString()`` method to +If your ULID is generated by another system, use the ``fromString()`` method to create an object and make use of the utilities available for Symfony ULIDs:: // this value is generated somewhere else @@ -180,7 +180,7 @@ ULID objects created with the ``Ulid`` class can use the following methods:: // comparing ULIDs and checking for equality $ulid1->equals($ulid2); // false // this method returns $ulid1 <=> $ulid2 - $uuid1->compare($uuid4); // e.g. int(-1) + $ulid1->compare($ulid2); // e.g. int(-1) .. _`unique identifiers`: https://en.wikipedia.org/wiki/UID .. _`UUIDs`: https://en.wikipedia.org/wiki/Universally_unique_identifier