mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
fix typos
This commit is contained in:
@ -146,10 +146,9 @@ fn main() {
|
||||
|
||||
10. 🌟🌟🌟 有时候需要转义的字符很多,我们会希望使用更方便的方式来书写字符串: raw string.
|
||||
```rust,editable
|
||||
|
||||
/* 填空并修复所有错误 */
|
||||
fn main() {
|
||||
let raw_str = r"Escapes don't work here: \x3F \u{211D}";
|
||||
// 修改以下代码行,让它工作
|
||||
assert_eq!(raw_str, "Escapes don't work here: ? ℝ");
|
||||
|
||||
// 如果你希望在字符串中使用双引号,可以使用以下形式
|
||||
|
Reference in New Issue
Block a user