diff options
author | Markus Wüstenberg | 2024-09-24 10:43:37 +0200 |
---|---|---|
committer | Markus Wüstenberg | 2024-09-24 10:43:37 +0200 |
commit | 3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4 (patch) | |
tree | c799338a21d4a84c5fb7847958f6d7296046e83a /gomponents.go | |
parent | 04640fcce01becec93d63beb3ddb034842e51c15 (diff) | |
download | gomponents-3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4.tar.lz gomponents-3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4.tar.zst gomponents-3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4.zip |
Fix links in package documentation
Apparently, [Node]s doesn't link in Godoc, while [Node]-s does.
Diffstat (limited to 'gomponents.go')
-rw-r--r-- | gomponents.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gomponents.go b/gomponents.go index e0c5b0b..cdc87a1 100644 --- a/gomponents.go +++ b/gomponents.go @@ -6,7 +6,7 @@ // All DOM elements and attributes can be created by using the [El] and [Attr] functions. // The functions [Text], [Textf], [Raw], and [Rawf] can be used to create text nodes, either HTML-escaped or unescaped. // See also helper functions [Map], [If], and [Iff] for mapping data to nodes and inserting them conditionally. -// There's also the [Group] type, which is a slice of [Node]s that can be rendered as one [Node]. +// There's also the [Group] type, which is a slice of [Node]-s that can be rendered as one [Node]. // // For basic HTML elements and attributes, see the package html. // @@ -247,7 +247,7 @@ func Rawf(format string, a ...interface{}) Node { }) } -// Map a slice of anything to a [Group] (which is just a slice of [Node]s). +// Map a slice of anything to a [Group] (which is just a slice of [Node]-s). func Map[T any](ts []T, cb func(T) Node) Group { var nodes []Node for _, t := range ts { @@ -256,7 +256,7 @@ func Map[T any](ts []T, cb func(T) Node) Group { return nodes } -// Group a slice of [Node]s into one Node, while still being usable like a regular slice of [Node]s. +// Group a slice of [Node]-s into one Node, while still being usable like a regular slice of [Node]-s. // A [Group] can render directly, but if any of the direct children are [AttributeType], they will be ignored, // to not produce invalid HTML. type Group []Node |