docs: Revise notes for example std_global_allocator.rs
#36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed a recent commit hoisted the two type comments from their contextual proximity to relevant code, while the
START_ARENA
line seems to have no relevance separating the two comment sections. Grouped them together as bullet point notes.The two type focused comments are more explicit about communicating that early now, followed by the description for the choice (it's not really communicated why
spin::Mutex
is sensible to the user, but I suppose that's better context than none). Was vaguely touched on here, I could add a link to that for reference if considered helpful?It's not clear what the Miri comment refers to by "this", other than the relation to the global allocator attribute. Nor what "if you can't have that" is referring to (the violation being potentially valid, or a false-positive from Miri?). Additionally corrected a typo + corrected the file name that was changed since the comment was written.
The shorter README equivalent uses
ARENA
instead ofSTART_ARENA
, wasSTART_
meant to communicate any additional context?START_
is an initial arena.