From 6e3e288628a674c4465d0c3a37c51574600dd9a5 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 6 Sep 2024 00:23:44 -0400 Subject: [PATCH] Change ReccomendedHeightFor -> RecommendedHeight Closes #1 --- setter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }