Skip to content

Clean up addr in docs #6032

@geoffromer

Description

@geoffromer

Description of the bug:

#5434 removed addr patterns from the language, replacing them with ref patterns, but some design docs still use addr.

Link to documentation:

https://github.com/search?q=repo%3Acarbon-language%2Fcarbon-lang+path%3A%2F%5Edocs%5C%2Fdesign%5C%2F%2F+%22addr+self%22&type=code

https://github.com/search?q=repo%3Acarbon-language%2Fcarbon-lang+path%3A%2F%5Edocs%5C%2Fdesign%5C%2F%2F+%22%60addr%60%22&type=code

What should it say instead?

addr self: <whatever>* should be rewritten to ref self: <whatever>, and where applicable, the method body should be rewritten to reflect the type change (for example, self-> should become self.).

Note that this applies only to /docs/design. The toolchain still supports addr and not ref, but that's out of scope, and documents in /proposals are never updated to reflect changes in the language.

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationAn issue or proposed change to our documentationgood first issuePossibly a good first issue for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions