Fix doc comments on Label, TextInput

This commit is contained in:
Sasha Koshka 2024-08-25 01:38:42 -04:00
parent 82cf822602
commit d4e8847908
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func (this *Label) SetFocused (focused bool) {
this.box.SetFocused(focused)
}
// SetText sets the text content of the heading.
// SetText sets the text content of the label.
func (this *Label) SetText (text string) {
this.box.SetText(text)
}

View File

@ -55,7 +55,7 @@ func (this *TextInput) Dot () text.Dot {
return this.box.Dot()
}
// SetAlign sets the X and Y alignment of the label.
// SetAlign sets the X and Y alignment of the text input.
func (this *TextInput) SetAlign (x, y tomo.Align) {
this.box.SetAttr(tomo.AAlign(x, y))
}