Browse Source

runes.Feeder: renamed Buffered() to Runes() and Len() to Buffered() for consistency with bufio

Signed-off-by: Alejandro Mery <amery@jpi.io>
v0.2.x v0.1.1
Alejandro Mery 3 years ago
parent
commit
866fb8374b
  1. 4
      runes/feeder.go

4
runes/feeder.go

@ -112,12 +112,12 @@ func (f *Feeder) atLeast(n int) bool {
}
// Currently buffered runes
func (f *Feeder) Buffered() []rune {
func (f *Feeder) Runes() []rune {
return f.out
}
// Count of currently buffered runes
func (f *Feeder) Len() int {
func (f *Feeder) Buffered() int {
return len(f.out)
}

Loading…
Cancel
Save