diff --git a/twin/screen.go b/twin/screen.go index 0bf99ca..969ab13 100644 --- a/twin/screen.go +++ b/twin/screen.go @@ -220,8 +220,8 @@ func (screen *UnixScreen) Events() chan Event { } // Write string to ttyOut, panic on failure, return number of bytes written. -func (screen *UnixScreen) write(string string) int { - bytesWritten, err := screen.ttyOut.Write([]byte(string)) +func (screen *UnixScreen) write(s string) int { + bytesWritten, err := screen.ttyOut.Write([]byte(s)) if err != nil { panic(err) } diff --git a/twin/styledRune.go b/twin/styledRune.go index 228ba77..e9af9bc 100644 --- a/twin/styledRune.go +++ b/twin/styledRune.go @@ -15,9 +15,9 @@ type StyledRune struct { Style Style } -func NewStyledRune(rune rune, style Style) StyledRune { +func NewStyledRune(char rune, style Style) StyledRune { return StyledRune{ - Rune: rune, + Rune: char, Style: style, } }