Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/switch/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func main() {
// can use this to discover the type of an interface
// value. In this example, the variable `t` will have the
// type corresponding to its clause.
whatAmI := func(i interface{}) {
whatAmI := func(i any) {
switch t := i.(type) {
case bool:
fmt.Println("I'm a bool")
Expand Down
4 changes: 2 additions & 2 deletions examples/switch/switch.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
28a8909ee7963cb315f14a3be1607def1d91f3a3
qVDqWoUQ6AI
de11dc85f013921465be1d21619dbee535a884ca
0bvw1aIeuFM
6 changes: 3 additions & 3 deletions public/switch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading