1
0
mirror of https://github.com/google/uuid.git synced 2025-11-06 08:59:16 +02:00

docs: fixing typos (#156)

This commit is contained in:
Andreas Deininger
2024-02-12 17:07:22 +01:00
committed by GitHub
parent 0f11ee6918
commit b5b9aeb1d1
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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)
}
}

View File

@@ -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()