From f003b3f52157b7fdee8bd0c6266bd889f1c33bc5 Mon Sep 17 00:00:00 2001 From: MarbleGate Date: Sun, 17 Apr 2022 15:34:14 +0800 Subject: [PATCH] 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` 的使用: