From 2cc1e71fe9f4a304c0eec80c9c671dee9e35b29b Mon Sep 17 00:00:00 2001 From: MarbleGate Date: Sun, 17 Apr 2022 10:32:26 +0800 Subject: [PATCH 1/2] Fix link error --- src/advance/into-types/sized.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advance/into-types/sized.md b/src/advance/into-types/sized.md index b9d1fa4b..2d993d1c 100644 --- a/src/advance/into-types/sized.md +++ b/src/advance/into-types/sized.md @@ -31,7 +31,7 @@ fn my_function(n: usize) { #### 切片 -切片也是一个典型的 DST 类型,具体详情参见另一篇文章: [易混淆的切片和切片引用](https://course.rs/confonding/slice.html)。 +切片也是一个典型的 DST 类型,具体详情参见另一篇文章: [易混淆的切片和切片引用](https://course.rs/difficulties/slice.html)。 #### str From f003b3f52157b7fdee8bd0c6266bd889f1c33bc5 Mon Sep 17 00:00:00 2001 From: MarbleGate Date: Sun, 17 Apr 2022 15:34:14 +0800 Subject: [PATCH 2/2] Fix link error --- src/advance/lifetime/static.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advance/lifetime/static.md b/src/advance/lifetime/static.md index 737694c9..9d60b0eb 100644 --- a/src/advance/lifetime/static.md +++ b/src/advance/lifetime/static.md @@ -16,7 +16,7 @@ fn print_author(author: &'static str) { } ``` -除此之外,特征对象的生命周期也是 `'static`,例如[这里](https://course.rs/fight-with-compiler/lifetime/closure-with-static.html#特征对象的生命周期)所提到的。 +除此之外,特征对象的生命周期也是 `'static`,例如[这里](https://course.rs/compiler/fight-with-compiler/lifetime/closure-with-static.html#特征对象的生命周期)所提到的。 除了 `&'static` 的用法外,我们在另外一种场景中也可以见到 `'static` 的使用: