raft: log comment grammar fix

This commit is contained in:
Brandon Philips 2014-09-11 13:59:29 -07:00
parent f7f65ec464
commit 3bc4b2db12

View File

@ -190,7 +190,7 @@ func (l *raftLog) at(i int64) *pb.Entry {
return &l.ents[i-l.offset] 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 { func (l *raftLog) slice(lo int64, hi int64) []pb.Entry {
if lo >= hi { if lo >= hi {
return nil return nil