mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1058 from philips/grammar-fix
raft: log comment grammar fix
This commit is contained in:
commit
40341b488c
@ -190,7 +190,7 @@ func (l *raftLog) at(i int64) *pb.Entry {
|
||||
return &l.ents[i-l.offset]
|
||||
}
|
||||
|
||||
// slice get a slice of log entries from lo through hi-1, inclusive.
|
||||
// slice returns a slice of log entries from lo through hi-1, inclusive.
|
||||
func (l *raftLog) slice(lo int64, hi int64) []pb.Entry {
|
||||
if lo >= hi {
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user