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
In section 9.2 Common Escape Sequences, an example is given of assigning the literal ¯\_(ツ)_/¯ to a String. The text says "you need to escape the first backslash." However, there is only one backslash in that literal, and the text misses out an on opportunity to clear up confusion as to the difference between forward slash and backslash.
Naturally this is low priority and somewhat pedantic, but I have noticed in my experience that even professional devs get backward and forward slashes mixed up, and therefore I think a brief note saying something to the effect of "the slash toward the end is a forward slash and does not need to be escaped because it is not a special character in a String" would help beginners
The text was updated successfully, but these errors were encountered:
In section 9.2 Common Escape Sequences, an example is given of assigning the literal
¯\_(ツ)_/¯
to a String. The text says "you need to escape the first backslash." However, there is only one backslash in that literal, and the text misses out an on opportunity to clear up confusion as to the difference between forward slash and backslash.Naturally this is low priority and somewhat pedantic, but I have noticed in my experience that even professional devs get backward and forward slashes mixed up, and therefore I think a brief note saying something to the effect of "the slash toward the end is a forward slash and does not need to be escaped because it is not a special character in a String" would help beginners
The text was updated successfully, but these errors were encountered: