From 156d29e344a9a1b275e78cd07aba8a882176fc49 Mon Sep 17 00:00:00 2001 From: Xin Zhang Date: Wed, 14 Aug 2019 05:53:08 -0500 Subject: [PATCH] Fix typo (#65) --- cmd/bitcask/scan.go | 2 +- options.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bitcask/scan.go b/cmd/bitcask/scan.go index 19b3fd2..87315d4 100644 --- a/cmd/bitcask/scan.go +++ b/cmd/bitcask/scan.go @@ -14,7 +14,7 @@ import ( var scanCmd = &cobra.Command{ Use: "scan ", Aliases: []string{"search", "find"}, - Short: "Perform a prefis scan for keys", + Short: "Perform a prefix scan for keys", Long: `This performa a prefix scan for keys starting with the given prefix. This uses a Trie to search for matching keys and returns all matched keys.`, diff --git a/options.go b/options.go index 64c17f3..edd7f67 100644 --- a/options.go +++ b/options.go @@ -101,7 +101,7 @@ func WithMaxValueSize(size int) Option { } // WithSync causes Sync() to be called on every key/value written increasing -// durability and saftey at the expense of performance +// durability and safety at the expense of performance func WithSync(sync bool) Option { return func(cfg *config) error { cfg.sync = sync