docs: make it explicit that DeleteRange deletes [start, end) (#413)

Signed-off-by: Yik San Chan <evan.chanyiksan@gmail.com>
This commit is contained in:
yiksanchan 2022-01-03 23:45:29 -08:00 committed by GitHub
parent dd263ab9f1
commit d2f0290d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ func (c *Client) BatchDelete(ctx context.Context, keys [][]byte) error {
return nil
}
// DeleteRange deletes all key-value pairs in a range from TiKV.
// DeleteRange deletes all key-value pairs in the [startKey, endKey) range from TiKV.
func (c *Client) DeleteRange(ctx context.Context, startKey []byte, endKey []byte) error {
start := time.Now()
var err error