Skip to content

Commit e7917f5

Browse files
committed
Update exp_constraints.go
1 parent c6fdb9f commit e7917f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/generics/exp_constraints/examples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ func NewRegister() mapping.Register {
1616

1717
// Regist は、generics パッケージ配下に存在するサンプルを登録します.
1818
func (r *register) Regist(m mapping.ExampleMapping) {
19-
m["generics_exp_constraints"] = Constraints
19+
m["generics_exp_constraints"] = ExpConstraints
2020
}

examples/generics/exp_constraints/exp_constraints.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ func less[E constraints.Ordered](x, y E) bool {
1515
return x < y
1616
}
1717

18-
// Constraints -- Go 1.18 リリース時には含まれなかった制約型が定義されている golang.org/x/exp/constraints パッケージのサンプルです。
19-
func Constraints() error {
18+
// ExpConstraints -- Go 1.18 リリース時には含まれなかった制約型が定義されている golang.org/x/exp/constraints パッケージのサンプルです。
19+
func ExpConstraints() error {
2020
//
2121
// constraints パッケージには、Go 1.18 リリース時には
2222
// 含まれなかった制約型が定義されている。

0 commit comments

Comments
 (0)