File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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>
27592759int // implements comparable (int is strictly comparable)
27602760[]byte // does not implement comparable (slices cannot be compared)
27612761interface{} // 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)
27632763interface{ comparable } // type parameter only: implements comparable (comparable implements itself)
27642764interface{ ~int | ~[]byte } // type parameter only: does not implement comparable (slices are not comparable)
27652765interface{ ~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>
28022802type argument type constraint // constraint satisfaction
28032803
28042804int 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)
28062806[]byte comparable // not satisfied: slices are not comparable
28072807any interface{ comparable; int } // not satisfied: any does not implement interface{ int }
28082808any comparable // satisfied: any is comparable and implements the basic interface any
You can’t perform that action at this time.
0 commit comments