Sunny Huang

Results 35 issues of Sunny Huang

I have updated the translation to the newest version of the async book of the English version, so I add it to the appendix

I'm about to write a Chinese Translation of this book([I have a translated version for the old book](https://github.com/huangjj27/apr_zh-cn)), and I found that mdbook can use [multilanguage feature](https://gambhiro.github.io/mdbook-test-alice/), So is it...

在参考了[黑魔法书(nomicon)中subtyping小节](https://doc.rust-lang.org/nomicon/subtyping.html)的描述: > Some important variances (which we will explain in detail below): &'a T is covariant(协变) over 'a and T (as is *const T by metaphor) &'a mut T is...

bug

Sandra Dee指向了John Smith的bucket, Ted Baker 指向了Sandra Dee的bucket

原文如下: > 如果需要**创造新的Rc指针**, 必须手工调用clone()函数 词句中的"创造新的Rc指针", 可能会让读者理解为调用`Rc::new`方法创建新的`Rc`类型值, 建议作如下修改: > 如果需要创造**指向相同对象的**新Rc指针, 必须手工调用clone()函数

> ... 避免了Arc的运行效率损失, 是**非常有用的scoped函数**与spawn函数的区别就在于 .... 如上, "非常有用的scoped函数"中, 可能缺少了句号分隔. 此处应为 > ... 避免了Arc的运行效率损失, 是**非常有用。scoped函数**与spawn函数的区别就在于 ....

在P212中间的部分, "...并且把类型定制为 **PhantomData`

``` use std::cell::Cell; fn main() { let data: Cell = Cell::new(100); let p = &data; vdata.set(10); // `vdata` should be `data`? println!("{}", p.get()); p.set(20); println!("{:?}", data); } ```

发现机械工业出版社 p116 11.2 转移语义小节中, 标题使用"转移语义", 而后续描述却使用了"所有权转移"来描述: > 一个变量可以把它拥有的值**转移**给另外一个变量, 称为 **"所有权转移"** . 赋值语句, 函数调用, 函数返回等, 都有可能造成**所有权转移**

I found some mismatch from the docs to the parameter of `Profile::from_env` & `Profile::from_env_or`, in which the `name` from docs may be some typo.