mirror of
https://github.com/google/uuid.git
synced 2024-11-21 17:16:42 +02:00
docs: fixing typos (#156)
This commit is contained in:
parent
0f11ee6918
commit
b5b9aeb1d1
@ -18,4 +18,4 @@ go get github.com/google/uuid
|
||||
|
||||
Full `go doc` style documentation for the package can be viewed online without
|
||||
installing this package by using the GoDoc site here:
|
||||
http://pkg.go.dev/github.com/google/uuid
|
||||
https://pkg.go.dev/github.com/google/uuid
|
||||
|
@ -205,10 +205,10 @@ func TestNullUUIDUnmarshalJSON(t *testing.T) {
|
||||
var nu NullUUID
|
||||
err := json.Unmarshal(jsonNull, &nu)
|
||||
if err != nil || nu.Valid {
|
||||
t.Errorf("expected nil when unmarshaling null, got %s", err)
|
||||
t.Errorf("expected nil when unmarshalling null, got %s", err)
|
||||
}
|
||||
err = json.Unmarshal(jsonUUID, &nu)
|
||||
if err != nil || !nu.Valid {
|
||||
t.Errorf("expected nil when unmarshaling null, got %s", err)
|
||||
t.Errorf("expected nil when unmarshalling null, got %s", err)
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ var lastV7time int64
|
||||
const nanoPerMilli = 1000000
|
||||
|
||||
// getV7Time returns the time in milliseconds and nanoseconds / 256.
|
||||
// The returned (milli << 12 + seq) is guarenteed to be greater than
|
||||
// The returned (milli << 12 + seq) is guaranteed to be greater than
|
||||
// (milli << 12 + seq) returned by any previous call to getV7Time.
|
||||
func getV7Time() (milli, seq int64) {
|
||||
timeMu.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user