Renamed toUUID to parseUUID

This commit is contained in:
Ruslan Mustakov 2016-09-15 20:37:45 +07:00
commit e9772338df
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ proc genUUID*(): UUID =
## Uses random values obtained from system source (e.g. urandom).
## In the future this will use a cryptographically secure PRNG for efficiency.
proc toUUID*(s: string): UUID {.raises: [ValueError].}
proc parseUUID*(s: string): UUID {.raises: [ValueError].}
## Converts string representation of an UUID to UUID object.
## Raises ValueError if invalid format is provided.
```