Update ch08-02-strings.md

在pdf上阅读时斜体的字母L看起来像/,建议修改为反引号包裹。
pull/880/head
qwer252 3 days ago committed by GitHub
parent 53bdf7e3de
commit 1b749d2da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -77,7 +77,7 @@
如果 `push_str` 方法获取了 `s2` 的所有权,就不能在最后一行打印出其值了。好在代码如我们期望那样工作! 如果 `push_str` 方法获取了 `s2` 的所有权,就不能在最后一行打印出其值了。好在代码如我们期望那样工作!
`push` 方法被定义为获取一个单独的字符作为参数,并附加到 `String` 中。示例 8-17 展示了使用 `push` 方法将字母 *l* 加入 `String` 的代码。 `push` 方法被定义为获取一个单独的字符作为参数,并附加到 `String` 中。示例 8-17 展示了使用 `push` 方法将字母 `l` 加入 `String` 的代码。
```rust ```rust
{{#rustdoc_include ../listings/ch08-common-collections/listing-08-17/src/main.rs:here}} {{#rustdoc_include ../listings/ch08-common-collections/listing-08-17/src/main.rs:here}}

Loading…
Cancel
Save