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

Typo on web article? #314

Closed
busslina opened this issue Jul 15, 2024 · 1 comment
Closed

Typo on web article? #314

busslina opened this issue Jul 15, 2024 · 1 comment

Comments

@busslina
Copy link

Here it seems to be a typo:

let my_thing = RefCell::new(4);
let ex = smol::LocalExecutor::new();

// Look, ma! A thread-unsafe task!
ex.spawn(async {
    *ex.borrow_mut() = 5;
}).detach();

You're not using my_thing so I suppose *ex.borrow_mut() = 5; must be *my_thing.borrow_mut() = 5;

@notgull
Copy link
Member

notgull commented Oct 29, 2024

My blog has an issue tracker here: https://codeberg.org/notgull/blog/issues

@notgull notgull closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants