Skip to content

The rust book page on mutability is confusingly worded #33924

Closed
@jwatt

Description

@jwatt

In the rust book section on mutability the text is written in a very confusing way. I'm particularly thinking of the bits of text like:

when we say something is ‘immutable’ [...] we mean something has ‘exterior mutability’

Perhaps this can be reworded as:

when we say something is ‘immutable’ [...] we mean something has ‘exterior immutability’

Or if the phrase "exterior immutability" isn't acceptable, then a more general rewording like:

when we say something is ‘immutable’ [...] we are referring to its ‘exterior mutability’

Or:

when we say something is ‘immutable’ [...] we mean something has ‘exterior mutability’ that in this case is immutable

As it's currently worded it sounds roughly like saying "when something is immutable it is mutable", since saying that something has "exterior mutability" sounds like saying it is mutable on the exterior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions