Skip to content

Commit

Permalink
Merge pull request sunface#1087 from GSlun/patch-1
Browse files Browse the repository at this point in the history
错别字
  • Loading branch information
sunface authored Dec 7, 2022
2 parents cd94f48 + d112990 commit a70df01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/result-error/result.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum Result<T, E> {
}
```

泛型参数 `T` 代表成功时存入的正确值的类型,存放方式是 `Ok(T)``E` 代表错误是存入的错误值,存放方式是 `Err(E)`,枯燥的讲解永远不及代码生动准确,因此先来看下打开文件的例子:
泛型参数 `T` 代表成功时存入的正确值的类型,存放方式是 `Ok(T)``E` 代表错误时存入的错误值,存放方式是 `Err(E)`,枯燥的讲解永远不及代码生动准确,因此先来看下打开文件的例子:

```rust
use std::fs::File;
Expand Down

0 comments on commit a70df01

Please sign in to comment.