Skip to content

Commit

Permalink
fix: RefCell
Browse files Browse the repository at this point in the history
  • Loading branch information
katopz committed Apr 11, 2024
1 parent d084274 commit 89eeac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/r3/refcell.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

> 🤔 [refer to stack overflow](https://stackoverflow.com/questions/28521637/how-can-i-move-a-captured-variable-into-a-closure-within-a-closure)
### With `RefCell`
### Without `RefCell`

```rust,editable
fn main() {
Expand All @@ -28,7 +28,7 @@ fn main() {
}
```

### Without `RefCell`
### With `RefCell`

```rust,editable
use std::cell::RefCell;
Expand Down

0 comments on commit 89eeac0

Please sign in to comment.