From 681f959733f999a7dc901ef9f372ae3f1fe9984b Mon Sep 17 00:00:00 2001 From: sunface Date: Sun, 20 Feb 2022 11:36:49 +0800 Subject: [PATCH] update slice.md --- contents/SUMMARY.md | 2 +- contents/confonding/slice.md | 2 +- contents/profiling/performance/intro.md | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contents/SUMMARY.md b/contents/SUMMARY.md index 913e1bcc..8eed03d6 100644 --- a/contents/SUMMARY.md +++ b/contents/SUMMARY.md @@ -151,7 +151,7 @@ - [易混淆概念解析](confonding/intro.md) - [切片和切片引用](confonding/slice.md) - - [String、&str 和 str](confonding/string.md) + - [原生指针、引用和智能指针 todo](confonding/pointer.md) - [作用域、生命周期和 NLL todo](confonding/lifetime.md) - [move、Copy和Clone todo](confonding/move-copy.md) diff --git a/contents/confonding/slice.md b/contents/confonding/slice.md index c6c464a1..c0deb940 100644 --- a/contents/confonding/slice.md +++ b/contents/confonding/slice.md @@ -1,7 +1,7 @@ # 切片和切片引用 关于 `str` / `&str`,`[u8]` / `&[u8]` 区别,你能清晰的说出来嘛?如果答案是 No ,那就跟随我一起来看看切片和切片引用到底有何区别吧。 -> 在继续之前,参见[此处](https://course.rs/basic/compound-type/string-slice.html#切片slice)了解何为切片 +> 在继续之前,查看[这里](https://course.rs/basic/compound-type/string-slice.html#切片slice)了解何为切片 切片允许我们引用集合中部分连续的元素序列,而不是引用整个集合。例如,字符串切片就是一个子字符串,数组切片就是一个子数组。 diff --git a/contents/profiling/performance/intro.md b/contents/profiling/performance/intro.md index f2254268..f9cb9ea5 100644 --- a/contents/profiling/performance/intro.md +++ b/contents/profiling/performance/intro.md @@ -1,5 +1,7 @@ # performance +https://nnethercote.github.io/perf-book/profiling.html + ## How do I profile a Rust web application in production? https://www.reddit.com/r/rust/comments/rupcux/how_do_i_profile_a_rust_web_application_in/