You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"A type switch is like a regular switch statement, but the cases in a type switch specify types (not values), and those values are compared against the type of the value held by the given interface value."
It should be?:
"A type switch is like a regular switch statement, but the cases in a type switch specify types (not values), and those types are compared against the type of the value held by the given interface value."
The text was updated successfully, but these errors were encountered:
crisman
added a commit
to crisman/golang_website
that referenced
this issue
Mar 7, 2023
In "methods/16" ("Type switches") the current slide explicitly says "a
type switch specify types (not values)" and then talks about "those
values" which should be "types". Quoting the spec "A type switch
compares types rather than values."
Replaced "values" with "types" where the slide is talking about types.
Fixesgolang/tour#1461
Context: https://go.dev/tour/methods/16
It says:
"A type switch is like a regular switch statement, but the cases in a type switch specify types (not values), and those values are compared against the type of the value held by the given interface value."
It should be?:
"A type switch is like a regular switch statement, but the cases in a type switch specify types (not values), and those types are compared against the type of the value held by the given interface value."
The text was updated successfully, but these errors were encountered: