Skip to content

Commit

Permalink
Update ulid.go
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon authored Apr 13, 2024
1 parent b862d24 commit 54fb474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ulid.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (id ULID) Timestamp() time.Time {
return Time(id.Time())
}

// IsZero returns whether the ULID is a zero-value, ie ulid.Nil.
// IsZero returns true if the ULID is a zero-value ULID, i.e. ulid.Zero.
func (id ULID) IsZero() bool {
return bytes.Equal(id[:], Nil[:])

Check failure on line 424 in ulid.go

View workflow job for this annotation

GitHub Actions / lint

undefined: Nil

Check failure on line 424 in ulid.go

View workflow job for this annotation

GitHub Actions / test (1.x, ubuntu-latest)

undefined: Nil

Check failure on line 424 in ulid.go

View workflow job for this annotation

GitHub Actions / test (1.x, macos-latest)

undefined: Nil
}
Expand Down

0 comments on commit 54fb474

Please sign in to comment.