mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-31 23:27:10 +09:00
Fix documentation for Loc.LessThan() and other similar functions
This commit is contained in:
@@ -9,7 +9,7 @@ type Loc struct {
|
||||
X, Y int
|
||||
}
|
||||
|
||||
// LessThan returns true if b is smaller
|
||||
// LessThan returns true if l is smaller than b
|
||||
func (l Loc) LessThan(b Loc) bool {
|
||||
if l.Y < b.Y {
|
||||
return true
|
||||
@@ -17,7 +17,7 @@ func (l Loc) LessThan(b Loc) bool {
|
||||
return l.Y == b.Y && l.X < b.X
|
||||
}
|
||||
|
||||
// GreaterThan returns true if b is bigger
|
||||
// GreaterThan returns true if l is bigger than b
|
||||
func (l Loc) GreaterThan(b Loc) bool {
|
||||
if l.Y > b.Y {
|
||||
return true
|
||||
@@ -25,7 +25,7 @@ func (l Loc) GreaterThan(b Loc) bool {
|
||||
return l.Y == b.Y && l.X > b.X
|
||||
}
|
||||
|
||||
// GreaterEqual returns true if b is greater than or equal to b
|
||||
// GreaterEqual returns true if l is greater than or equal to b
|
||||
func (l Loc) GreaterEqual(b Loc) bool {
|
||||
if l.Y > b.Y {
|
||||
return true
|
||||
@@ -36,7 +36,7 @@ func (l Loc) GreaterEqual(b Loc) bool {
|
||||
return l == b
|
||||
}
|
||||
|
||||
// LessEqual returns true if b is less than or equal to b
|
||||
// LessEqual returns true if l is less than or equal to b
|
||||
func (l Loc) LessEqual(b Loc) bool {
|
||||
if l.Y < b.Y {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user