From ee4ad2ab2b1a77820858bab287ba0fa2162b6d49 Mon Sep 17 00:00:00 2001 From: chupengfei <450793585@qq.com> Date: Sat, 29 Jun 2024 14:01:50 +0800 Subject: [PATCH] fix: add a blank line to improve the reading experience --- src/basic/compound-type/string-slice.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic/compound-type/string-slice.md b/src/basic/compound-type/string-slice.md index a4508585..3c3d0cab 100644 --- a/src/basic/compound-type/string-slice.md +++ b/src/basic/compound-type/string-slice.md @@ -399,6 +399,7 @@ string_replace_range = "I like Rust!" 1、 `pop` —— 删除并返回字符串的最后一个字符 **该方法是直接操作原来的字符串**。但是存在返回值,其返回值是一个 `Option` 类型,如果字符串为空,则返回 `None`。 + 示例代码如下: ```rust