Skip to content

Commit 9e0cdcd

Browse files
MustCodeAlCopilot
andauthored
Update src/todo/rust-basics.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ff2c66a commit 9e0cdcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/todo/rust-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ You can use functions such as `is_some()` or `is_none()` to check the value of t
6262
Used for returning and propagating errors
6363

6464
```rust
65-
pub enum Result<T> {
65+
pub enum Result<T, E> {
6666
Ok(T),
67-
Err(T),
67+
Err(E),
6868
}
6969
```
7070

0 commit comments

Comments
 (0)