mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-09-11 22:17:12 +03:00
Clarify Inherit comment
This commit is contained in:
parent
3616f64fab
commit
6b5dc18b3b
6
style.go
6
style.go
@ -120,9 +120,9 @@ func (s Style) Copy() Style {
|
||||
return o
|
||||
}
|
||||
|
||||
// Inherit takes values from the style in the argument applies them to this
|
||||
// style, overwriting existing definitions. Only values explicitly set on the
|
||||
// style in argument will be applied.
|
||||
// Inherit overlays the style in the argument onto this style by copying each explicitly
|
||||
// set value from the argument style onto this style if it is not already explicitly set.
|
||||
// Existing set values are kept intact and not overwritten.
|
||||
//
|
||||
// Margins, padding, and underlying string values are not inherited.
|
||||
func (s Style) Inherit(i Style) Style {
|
||||
|
Loading…
Reference in New Issue
Block a user