Explorar o código

raft: log comment grammar fix

Brandon Philips %!s(int64=11) %!d(string=hai) anos
pai
achega
3bc4b2db12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      raft/log.go

+ 1 - 1
raft/log.go

@@ -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