File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2759,7 +2759,7 @@ <h4 id="Type_constraints">Type constraints</h4>
2759
2759
int // implements comparable (int is strictly comparable)
2760
2760
[]byte // does not implement comparable (slices cannot be compared)
2761
2761
interface{} // does not implement comparable (see above)
2762
- interface{ ~int | ~string } // type parameter only: implements comparable (int, string types are stricly comparable)
2762
+ interface{ ~int | ~string } // type parameter only: implements comparable (int, string types are strictly comparable)
2763
2763
interface{ comparable } // type parameter only: implements comparable (comparable implements itself)
2764
2764
interface{ ~int | ~[]byte } // type parameter only: does not implement comparable (slices are not comparable)
2765
2765
interface{ ~struct{ any } } // type parameter only: does not implement comparable (field any is not strictly comparable)
@@ -2802,7 +2802,7 @@ <h4 id="Satisfying_a_type_constraint">Satisfying a type constraint</h4>
2802
2802
type argument type constraint // constraint satisfaction
2803
2803
2804
2804
int interface{ ~int } // satisfied: int implements interface{ ~int }
2805
- string comparable // satisfied: string implements comparable (string is stricty comparable)
2805
+ string comparable // satisfied: string implements comparable (string is strictly comparable)
2806
2806
[]byte comparable // not satisfied: slices are not comparable
2807
2807
any interface{ comparable; int } // not satisfied: any does not implement interface{ int }
2808
2808
any comparable // satisfied: any is comparable and implements the basic interface any
You can’t perform that action at this time.
0 commit comments