Fix typo in view.go

This commit is contained in:
Roi Martin (@nibble_ds) 2014-01-23 23:14:11 +01:00
parent a5dd7e25de
commit f51a568142
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ func (v *View) addLine(y int) error {
return nil return nil
} }
// Line returns a string with the line in the view's internal buffer // Line returns a string with the line of the view's internal buffer
// at the position corresponding to the point (x, y). // at the position corresponding to the point (x, y).
func (v *View) Line(y int) (string, error) { func (v *View) Line(y int) (string, error) {
y = v.oy + y y = v.oy + y
@ -252,7 +252,7 @@ func (v *View) Line(y int) (string, error) {
return string(v.lines[y]), nil return string(v.lines[y]), nil
} }
// Word returns a string with the word in the view's internal buffer // Word returns a string with the word of the view's internal buffer
// at the position corresponding to the point (x, y). // at the position corresponding to the point (x, y).
func (v *View) Word(x, y int) (string, error) { func (v *View) Word(x, y int) (string, error) {
x = v.ox + x x = v.ox + x