Skip to content

Commit

Permalink
Clarify Inherit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Evertras authored and meowgorithm committed Mar 4, 2022
1 parent 3616f64 commit 6b5dc18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b5dc18

Please sign in to comment.