diff --git a/setter.go b/setter.go index f76ad98..f5cc38f 100644 --- a/setter.go +++ b/setter.go @@ -386,10 +386,10 @@ func (setter *TypeSetter) MinimumSize () image.Point { return image.Pt(width.Round(), height.Round()) } -// ReccomendedHeightFor returns the reccomended max height if the text were to -// have its maximum width set to the given width. This does not alter the +// RecommendedHeight returns the reccomended max height if the text were to have +// its maximum width set to the given width. This does not alter the // typesetter's state. -func (setter *TypeSetter) ReccomendedHeightFor (width int) (height int) { +func (setter *TypeSetter) RecommendedHeight (width int) (height int) { setter.needLayout() if setter.lines == nil { return }