From a759eb0b38a06ae8cedd49784d4dd894a91b9d13 Mon Sep 17 00:00:00 2001 From: Rustln Date: Thu, 14 Apr 2022 17:37:26 +0800 Subject: [PATCH] Update superpowers.md --- src/advance/unsafe/superpowers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advance/unsafe/superpowers.md b/src/advance/unsafe/superpowers.md index 1d1c650c..e76f4659 100644 --- a/src/advance/unsafe/superpowers.md +++ b/src/advance/unsafe/superpowers.md @@ -70,7 +70,7 @@ fn get_memory_location() -> (usize, usize) { (pointer, length) } -// 在制定的内存地址读取字符串 +// 在指定的内存地址读取字符串 fn get_str_at_location(pointer: usize, length: usize) -> &'static str { unsafe { from_utf8_unchecked(from_raw_parts(pointer as *const u8, length)) } }