Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos and uneditable practices #518

Merged
merged 7 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions en/src/functional-programing/iterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn main() {

11. 🌟🌟

```rust
```rust,editable
/* Fill in the blanks */
use std::collections::HashMap;
fn main() {
Expand All @@ -305,7 +305,7 @@ fn main() {

12. 🌟🌟

```rust
```rust,editable
/* Fill in the blanks */
#[derive(PartialEq, Debug)]
struct Shoe {
Expand Down
4 changes: 2 additions & 2 deletions zh-CN/src/crate-module/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mod front_of_house {

2. 🌟🌟 让我们在库包的根中定义一个函数 `eat_at_restaurant`, 然后在该函数中调用之前创建的函数 `eat_at_restaurant`

```rust
```rust,editable
// in lib.rs

// 填空并修复错误
Expand Down Expand Up @@ -192,4 +192,4 @@ fn main() {
}
```

> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/module.md)找到答案(在 solutions 路径下)
> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/module.md)找到答案(在 solutions 路径下)
2 changes: 1 addition & 1 deletion zh-CN/src/lifetime/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() {


```rust,editable
/* 像上面的示例一样,为 `r` 和 `x` 标准生命周期,然后从生命周期的角度. */
/* 像上面的示例一样,为 `r` 和 `x` 标注生命周期,然后从生命周期的角度. */

fn main() {
{
Expand Down