Skip to content

Commit bfd385b

Browse files
authored
Fix typos (#76)
1 parent b5a26d1 commit bfd385b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

redislock.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
var luaReleaseScript string
2020

2121
//go:embed refresh.lua
22-
var luaRefeshScript string
22+
var luaRefreshScript string
2323

2424
//go:embed pttl.lua
2525
var luaPTTLScript string
@@ -28,7 +28,7 @@ var luaPTTLScript string
2828
var luaObtainScript string
2929

3030
var (
31-
luaRefresh = redis.NewScript(luaRefeshScript)
31+
luaRefresh = redis.NewScript(luaRefreshScript)
3232
luaRelease = redis.NewScript(luaReleaseScript)
3333
luaPTTL = redis.NewScript(luaPTTLScript)
3434
luaObtain = redis.NewScript(luaObtainScript)
@@ -186,7 +186,7 @@ func (l *Lock) Metadata() string {
186186
}
187187

188188
// TTL returns the remaining time-to-live. Returns 0 if the lock has expired.
189-
// In case lock is holding multiple keys, TTL returns the min ttl among thoses keys.
189+
// In case lock is holding multiple keys, TTL returns the min ttl among those keys.
190190
func (l *Lock) TTL(ctx context.Context) (time.Duration, error) {
191191
if l == nil {
192192
return 0, ErrLockNotHeld

0 commit comments

Comments
 (0)