Skip to content

Commit 1927f31

Browse files
Fix example
Co-authored-by: Nathan Stocks <[email protected]>
1 parent 2e5366d commit 1927f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2023-10-05-Rust-1.73.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The new methods make common code more concise and avoid running the extra initia
6262

6363
```rust
6464
thread_local! {
65-
static THINGS: RefCell<Vec<i32>> = RefCell::new(Vec::new());
65+
static THINGS: Cell<Vec<i32>> = Cell::new(Vec::new());
6666
}
6767

6868
fn f() {

0 commit comments

Comments
 (0)