mirror of
https://github.com/charmbracelet/gum
synced 2024-05-20 23:26:43 +02:00
fix(docs): correct LipglossPadding doc comment
This commit is contained in:
parent
b23ebce896
commit
6e802805cf
|
@ -6,7 +6,7 @@ import (
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LipglossLengthPadding calculated calculates how much padding a string is given by a style.
|
// LipglossPadding calculates how much padding a string is given by a style.
|
||||||
func LipglossPadding(style lipgloss.Style) (int, int) {
|
func LipglossPadding(style lipgloss.Style) (int, int) {
|
||||||
render := style.Render(" ")
|
render := style.Render(" ")
|
||||||
before := strings.Index(render, " ")
|
before := strings.Index(render, " ")
|
||||||
|
|
Loading…
Reference in a new issue