-
Notifications
You must be signed in to change notification settings - Fork 17
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
documentation inconsistencies about mutability #78
Comments
/cc @matklad |
Yeah, that's definitely confusing :) I think the best way to actually document this is to use the original formulation of The trick with |
Yeah the documentation is definitely confusing at the moment. I think matklad's suggested wording would be a good substitute, but I'm not sure how to accurately describe the |
I decided to add a separate commit (9d634d1) documenting the |
Since commit fd419de, the docs have become inconsistent about whether LazyCell allows mutation. There are several places that claim it's permanently frozen once it's been initialized:
But with that commit, the
borrow_mut
method now allows it to be mutated, so it doesn't really make sense to describe it as having frozen contents anymore, does it?That commit also resulted in this pretty confusing sentence:
I can't really figure out what that's trying to say. What does sharing have to do with it, and how is it a limitation to be able to modified?
The text was updated successfully, but these errors were encountered: