Skip to content

Commit f63ee8b

Browse files
alexandeargopherbot
authored andcommitted
doc: fix spec typo
Change-Id: I5e3aca2b8fc78f38c9e2cdc67adf86d57ac85b1c GitHub-Last-Rev: 0e5ddff GitHub-Pull-Request: #58353 Reviewed-on: https://go-review.googlesource.com/c/go/+/465615 Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 9565d99 commit f63ee8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/go_spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ <h4 id="Type_constraints">Type constraints</h4>
27592759
int // implements comparable (int is strictly comparable)
27602760
[]byte // does not implement comparable (slices cannot be compared)
27612761
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)
27632763
interface{ comparable } // type parameter only: implements comparable (comparable implements itself)
27642764
interface{ ~int | ~[]byte } // type parameter only: does not implement comparable (slices are not comparable)
27652765
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>
28022802
type argument type constraint // constraint satisfaction
28032803

28042804
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)
28062806
[]byte comparable // not satisfied: slices are not comparable
28072807
any interface{ comparable; int } // not satisfied: any does not implement interface{ int }
28082808
any comparable // satisfied: any is comparable and implements the basic interface any

0 commit comments

Comments
 (0)