We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38c94e1 commit 22f61e2Copy full SHA for 22f61e2
style.md
@@ -2593,9 +2593,11 @@ type Client struct {
2593
Embedding should provide tangible benefit, like adding or augmenting
2594
functionality in a semantically-appropriate way. It should do this with zero
2595
adverse user-facing effects (see also: [Avoid Embedding Types in Public Structs]).
2596
-Generally, mutexes should not be embedded unless they are an integral part of the embedding type's API.
+
2597
+Exception: Mutexes should not be embedded, even on unexported types. See also: [Zero-value Mutexes are Valid].
2598
2599
[Avoid Embedding Types in Public Structs]: #avoid-embedding-types-in-public-structs
2600
+ [Zero-value Mutexes are Valid]: #zero-value-mutexes-are-valid
2601
2602
Embedding **should not**:
2603
0 commit comments