aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Deininger <andreas@deininger.net>2024-02-12 17:07:22 +0100
committerGitHub <noreply@github.com>2024-02-12 10:07:22 -0600
commitb5b9aeb1d146751d5a09f1b2ca83fd9731d3a8fa (patch)
treecb6f0de99624c2df3bc3f2c96617fc2567762b68
parent0f11ee6918f41a04c201eceeadf612a377bc7fbc (diff)
downloadgoogle-uuid-b5b9aeb1d146751d5a09f1b2ca83fd9731d3a8fa.tar.gz
docs: fixing typos (#156)
-rw-r--r--README.md2
-rw-r--r--null_test.go4
-rw-r--r--version7.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3e9a618..a63ef61 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/null_test.go b/null_test.go
index c6e5e69..fe0fe8d 100644
--- a/null_test.go
+++ b/null_test.go
@@ -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)
}
}
diff --git a/version7.go b/version7.go
index 3167b64..0f5d994 100644
--- a/version7.go
+++ b/version7.go
@@ -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()