From 0ad0d5f5552b3833f3173bbc89484f2e892f62a3 Mon Sep 17 00:00:00 2001 From: 863056768 <51009484+863056768@users.noreply.github.com> Date: Sun, 6 Mar 2022 17:36:06 +0800 Subject: [PATCH] =?UTF-8?q?url=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://course.rs/base-type/numbers.htmll#序列range > https://course.rs/basic/base-type/numbers.html#序列range --- src/basic/compound-type/string-slice.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/compound-type/string-slice.md b/src/basic/compound-type/string-slice.md index a2191213..8bf44f97 100644 --- a/src/basic/compound-type/string-slice.md +++ b/src/basic/compound-type/string-slice.md @@ -55,7 +55,7 @@ let world = &s[6..11]; -在使用 Rust 的 `..` [range 序列](https://course.rs/base-type/numbers.html#序列range)语法时,如果你想从索引 0 开始,可以使用如下的方式,这两个是等效的: +在使用 Rust 的 `..` [range 序列](https://course.rs/basic/base-type/numbers.html#序列range)语法时,如果你想从索引 0 开始,可以使用如下的方式,这两个是等效的: ```rust let s = String::from("hello"); @@ -429,4 +429,4 @@ for b in "中国人".bytes() { > Rust By Practice,支持代码在线编辑和运行,并提供详细的[习题解答](https://github.com/sunface/rust-by-practice)。 > - [字符串](https://zh.practice.rs/compound-types/string.html) -> - [切片](https://zh.practice.rs/compound-types/slice.html) \ No newline at end of file +> - [切片](https://zh.practice.rs/compound-types/slice.html)