Skip to content

Commit

Permalink
Fix erroneous grammar in doc comment
Browse files Browse the repository at this point in the history
Co-authored-by: Albert <26584478+albertteoh@users.noreply.github.com>
  • Loading branch information
peterstace and albertteoh committed Mar 23, 2023
1 parent 8379d8a commit c0c2ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom/xy.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (w XY) Length() float64 {
return math.Sqrt(w.lengthSq())
}

// lengthSq treads XY as a vector, and returns its squared length.
// lengthSq treats XY as a vector, and returns its squared length.
func (w XY) lengthSq() float64 {
return w.Dot(w)
}
Expand Down

0 comments on commit c0c2ff9

Please sign in to comment.