Skip to content

Commit 57b9021

Browse files
committed
docs(tag): clarify TagExpand's runtime validation behavior
Signed-off-by: Johan Lindh <johan@linkdata.se>
1 parent 6385d49 commit 57b9021

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎lib/tag/doc.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Package tag expands JaWS tag values into comparable keys that identify
22
// elements during dirtying, broadcasts and event routing.
33
//
4-
// The runtime tag-comparability check in [TagExpand] is gated on
5-
// deadlock.Debug, so it (and full statement coverage of this package) is only
6-
// exercised when the tests run with the -race flag or -tags debug. Always test
7-
// with -race.
4+
// [TagExpand] rejects values that are not usable as hashable tag keys, including
5+
// values whose static type is comparable but whose runtime contents are not.
86
package tag

0 commit comments

Comments
 (0)