Improve doc comment for TypeSetter.AtPosition

This commit is contained in:
Sasha Koshka 2024-09-20 00:47:03 -04:00
parent 436686961b
commit fe23b63070

View File

@ -89,7 +89,8 @@ type TypeSetter struct {
layoutBoundsSpace fixed.Rectangle26_6
}
// AtPosition returns the index of the rune at the specified position.
// AtPosition returns the index of the rune at the specified position. The
// returned index may be greater than the length of runes in the TypeSetter.
func (this *TypeSetter) AtPosition (position fixed.Point26_6) int {
metrics := this.face.Metrics()
lastValidIndex := 0