What are those letters before string slice?

Hi! While reading the book and references, I stumbled at definitions b' ' and Regex::new(r"some regex"). What are those letters before char/string slice, and where do I read about them? At first, I thought its macros, but seems they aren't.

The book!

https://doc.rust-lang.org/stable/book/appendix-02-operators.html#non-operator-symbols

6 Likes

Thanks!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.