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
I understand where the backwards slash might come from because of my Java background, but nowhere in the Rust book or Rust by Example does it even mention escape sequences, much less tell you what kinds of them there are, and, regardless, the example does not even use one- it just pops up in the output.
I do not want to program by coincidence- what the hell is going on here?
From an instruction standpoint I don't consider it that big an issue though. fmt::Debug doesn't always format things in an ideal way. \' obviously isn't ideal and if that's a problem, use fmt::Display. Either way, it's just how Rust prints for now. It's a bigger issue with those unicode characters in the playpen link; you can't even tell what they are supposed to be without a look-up table.
If it bothers you though, submit a PR to add a comment about it. It's just that the fmt::Debug implementation isn't being smart enough.
http://rustbyexample.com/hello/print/print_debug.html
Output
"Christian" "Slater" is the "actor\'s" name.
The text was updated successfully, but these errors were encountered: