Skip to content

Commit ed7e4aa

Browse files
committed
Update comments
1 parent b4ac618 commit ed7e4aa

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

examples/generics/exp_constraints/exp_constraints.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ func less[E constraints.Ordered](x, y E) bool {
1616
}
1717

1818
// ExpConstraints -- Go 1.18 リリース時には含まれなかった制約型が定義されている golang.org/x/exp/constraints パッケージのサンプルです。
19+
//
20+
// REFERENCES
21+
// - https://pkg.go.dev/golang.org/x/exp/constraints
1922
func ExpConstraints() error {
2023
//
2124
// constraints パッケージには、Go 1.18 リリース時には

examples/generics/exp_maps/exp_maps.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
)
77

88
// ExpMaps -- Go 1.18 リリース時には含まれなかったジェネリクス対応 汎用map処理が定義されている golang.org/x/exp/maps パッケージのサンプルです。
9+
//
10+
// REFERENCES
11+
// - https://pkg.go.dev/golang.org/x/exp/maps
912
func ExpMaps() error {
1013
var (
1114
m1 = map[string]int{"hello": 100, "world": 101}

examples/generics/exp_slices/exp_slices.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
)
77

88
// ExpSlices -- Go 1.18 リリース時には含まれなかったジェネリクス対応 汎用slice処理が定義されている golang.org/x/exp/slices パッケージのサンプルです。
9+
//
10+
// REFERENCES
11+
// - https://pkg.go.dev/golang.org/x/exp/slices
912
func ExpSlices() error {
1013
var (
1114
s1 = []string{"hello", "world"}

0 commit comments

Comments
 (0)