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
Hello, I would like to propose the following improvement on this page:
All of the suggestions go under the "The Four Forms of Switch":
The second bullet point is cut short after "unless'. I assume it was supposed to finish with "explicitly terminated with a 'break'."
The first example in this section is for a switch statement without fall through. However, it showcases a switch expression. I think this was likely a copy-paste issue, as this example has the same code as the example preceding it in the previous section ("Statements in Branches").
The second example in this section is for a fall through version of switch expressions, but it includes a yield in every case, thus not actually demonstrating the fall through.
The text was updated successfully, but these errors were encountered:
Hello, I would like to propose the following improvement on this page:
All of the suggestions go under the "The Four Forms of Switch":
switch
statement without fall through. However, it showcases aswitch
expression. I think this was likely a copy-paste issue, as this example has the same code as the example preceding it in the previous section ("Statements in Branches").switch
expressions, but it includes ayield
in every case, thus not actually demonstrating the fall through.The text was updated successfully, but these errors were encountered: