From 143b0dd166488dd4d2ec83374e536e20cbdc500a Mon Sep 17 00:00:00 2001 From: Sartner Date: Fri, 5 Aug 2022 11:41:15 +0800 Subject: [PATCH] fix: spelling mistake --- zh-CN/src/lifetime/static.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-CN/src/lifetime/static.md b/zh-CN/src/lifetime/static.md index 18c2b50..48a9edd 100644 --- a/zh-CN/src/lifetime/static.md +++ b/zh-CN/src/lifetime/static.md @@ -13,7 +13,7 @@ fn generic(x: T) where T: 'static {} ## &'static 作为一个引用生命周期,`&'static` 说明该引用指向的数据可以跟程序活得一样久,但是该引用的生命周期依然有可能被强转为一个更短的生命周期。 -1、🌟🌟 有好几种方法可以将一个变量标记为 `'static` 生命周期, 其中两种都是和保存在二进制文件中相关( 例如字符串字面量就是保存在二进制文件中,它的生命周期是 `'statci` )。 +1、🌟🌟 有好几种方法可以将一个变量标记为 `'static` 生命周期, 其中两种都是和保存在二进制文件中相关( 例如字符串字面量就是保存在二进制文件中,它的生命周期是 `'static` )。 ```rust,editable @@ -184,4 +184,4 @@ fn print_f(t: &(impl Display + 'static)) { fn print_g(t: &'static String) { println!("{}", t); } -``` \ No newline at end of file +```