Skip to content

Commit

Permalink
doc: fix spec typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Feb 7, 2023
1 parent bf8d142 commit 0e5ddff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/go_spec.html
Expand Up @@ -2759,7 +2759,7 @@ <h4 id="Type_constraints">Type constraints</h4>
int // implements comparable (int is strictly comparable)
[]byte // does not implement comparable (slices cannot be compared)
interface{} // does not implement comparable (see above)
interface{ ~int | ~string } // type parameter only: implements comparable (int, string types are stricly comparable)
interface{ ~int | ~string } // type parameter only: implements comparable (int, string types are strictly comparable)
interface{ comparable } // type parameter only: implements comparable (comparable implements itself)
interface{ ~int | ~[]byte } // type parameter only: does not implement comparable (slices are not comparable)
interface{ ~struct{ any } } // type parameter only: does not implement comparable (field any is not strictly comparable)
Expand Down Expand Up @@ -2802,7 +2802,7 @@ <h4 id="Satisfying_a_type_constraint">Satisfying a type constraint</h4>
type argument type constraint // constraint satisfaction

int interface{ ~int } // satisfied: int implements interface{ ~int }
string comparable // satisfied: string implements comparable (string is stricty comparable)
string comparable // satisfied: string implements comparable (string is strictly comparable)
[]byte comparable // not satisfied: slices are not comparable
any interface{ comparable; int } // not satisfied: any does not implement interface{ int }
any comparable // satisfied: any is comparable and implements the basic interface any
Expand Down

0 comments on commit 0e5ddff

Please sign in to comment.