RustPrimer icon indicating copy to clipboard operation
RustPrimer copied to clipboard

The Rust primer for beginners. We need native English speaker help us modify the translation.

Results 92 RustPrimer issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/34397881/137902623-bf7bd368-6fb0-4dd8-a160-a05bf19d666b.png) 不知道是不是rust版本的问题,我发现图中标识的是可以的,我用版本为rustc 1.55.0 (c8dfcfe04 2021-09-06)

适配器 -> 迭代器

fix ownership-system/borrowing_reference.md markdown syntax typo

我记得去年就看过你的在线文档,我觉得不错,就是一些符号被转义了,">" -> "&gt"像这样 今天还是这样,要不要改一下 ![image](https://user-images.githubusercontent.com/46296608/89704786-acbc7400-d989-11ea-9993-ffd5c6fbce72.png)

https://github.com/rustcc/RustPrimer/blob/master/ownership-system/lifetime.md ## 隐式Lifetime 我们经常会遇到参数或者返回值为引用类型的函数: ```rust fn foo(x: &str) -> &str { x } ``` 上面函数在实际应用中并没有太多用处,`foo` 函数仅仅接受一个 `&str ` 类型的参数(`x`为对某个`string`类型资源`Something`的借用),并返回对资源`Something`的一个新的借用。 实际上,上面函数包含该了隐性的生命周期命名,这是由编译器自动推导的,相当于: ```rust fn foo &'a str { x } ``` 在这里,约束返回值的Lifetime必须大于或等于参数`x`的Lifetime。下面函数写法也是合法的:...

希望release的频次频繁一点,latest release已经过去一年了

个人认为, wiki 可以用作协作者贡献规范, FAQ, 英文翻译标准等文档的集中之处, 建议开放wiki功能。