Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MarijnS95
Copy link
Member

In a raw string no escaping is processed nor are these quotes treated specially unless it was postfixed with #; the backslashes show up in the compiler error displayed to the user instead.

For consistency the string this was likely copied from is now also turned into a raw string literal, with backslashes equivalently removed.

In a raw string [no escaping is processed] nor are these quotes treated
specially unless it was postfixed with `#`; the backslashes show up in
the compiler error displayed to the user instead.

For consistency the string this was likely copied from is now also
turned into a raw string literal, with backslashes equivalently removed.

[no escaping is processed]: https://doc.rust-lang.org/reference/tokens.html#raw-string-literals
@MarijnS95 MarijnS95 force-pushed the remove-unneeded-backslash-escape branch from b213da2 to b217ad5 Compare December 14, 2022 19:51
@MarijnS95 MarijnS95 requested a review from rib December 20, 2022 09:13
Copy link
Member

@rib rib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks this looks good to me.

@rib rib merged commit 8f68cb5 into main Dec 20, 2022
@rib rib deleted the remove-unneeded-backslash-escape branch December 20, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants