Merge pull request #332 from lzy1960/master

fix: misleading words
This commit is contained in:
Sunface
2022-12-07 08:43:50 +08:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@ -155,6 +155,7 @@ fn main() {
/* Fill in the blank and fix the errors */
fn main() {
let raw_str = r"Escapes don't work here: \x3F \u{211D}";
// Modify above line to make it work
assert_eq!(raw_str, "Escapes don't work here: ? ");
// If you need quotes in a raw string, add a pair of #s
@ -166,6 +167,7 @@ fn main() {
let delimiter = r###"A string with "# in it. And even "##!"###;
println!("{}", delimiter);
// Fill the blank
let long_delimiter = __;
assert_eq!(long_delimiter, "Hello, \"##\"");
@ -262,4 +264,4 @@ fn main() {
}
```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it