]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/loc.go
Code optimisation (#1117)
[micro.git] / cmd / micro / loc.go
index b984c02cdb38a9f272806c8791228a3cae0f8dac..a3806e548d24e179b8ac07393b6e772ecebc3a5f 100644 (file)
@@ -54,6 +54,7 @@ type Loc struct {
        X, Y int
 }
 
+// Diff returns the distance between two locations
 func Diff(a, b Loc, buf *Buffer) int {
        if a.Y == b.Y {
                if a.X > b.X {