@@ -21,7 +21,7 @@ import (
2121//
2222// First arg is always got, and second is always expected.
2323//
24- // A cannot be an interface. This retriction can be removed in the
24+ // A cannot be an interface. This restriction can be removed in the
2525// future, if really needed.
2626//
2727// This function is called as soon as possible each time the type A is
@@ -30,7 +30,7 @@ import (
3030// When it returns a bool, false means A is not equal to B.
3131//
3232// When it returns a non-nil error (meaning got ≠ expected), its
33- // contents is used to tell the reason of the failure.
33+ // content is used to tell the reason of the failure.
3434//
3535// Cmp hooks are checked before [UseEqual] feature.
3636//
@@ -100,7 +100,7 @@ func (t *T) WithCmpHooks(fns ...any) *T {
100100// func (got A) B
101101// func (got A) (B, error)
102102//
103- // A cannot be an interface. This retriction can be removed in the
103+ // A cannot be an interface. This restriction can be removed in the
104104// future, if really needed.
105105//
106106// B cannot be an interface. If you have a use case, we can talk about it.
@@ -114,7 +114,7 @@ func (t *T) WithCmpHooks(fns ...any) *T {
114114//
115115// When it returns non-nil error (meaning something wrong happened
116116// during the conversion of A to B), it raises a global error and its
117- // contents is used to tell the reason of the failure.
117+ // content is used to tell the reason of the failure.
118118//
119119// Smuggle hooks are run just before Cmp hooks.
120120//
0 commit comments