Correct doc comment

This commit is contained in:
Christian Rocha
2020-05-18 18:45:37 -04:00
parent 61285e4e90
commit 28deb6c543

View File

@@ -28,7 +28,7 @@ func (m Model) ScrollPercent() float64 {
return y / (t - h)
}
// Content set the pager's text content
// SetContent set the pager's text content
func (m *Model) SetContent(s string) {
s = strings.Replace(s, "\r\n", "\n", -1) // normalize line endings
m.lines = strings.Split(s, "\n")