Skip to content

book: explain why we default to &self as first parameter in methods #23748

Closed
@tshepang

Description

@tshepang

In Method Syntax chapter, the reason given for using &self as the method parameter is that "it's the most common". That needs to be replaced with a better explanation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions