Skip to content
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

Clarify C-DEREF #251

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/predictability.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ specifically to accommodate smart pointers, and so the traits should be used
with those rules in mind.

As a general guideline, consider the "_as-a_" rule. If you implement `Deref`,
wherever `&Target` is acceptable, `&Self` works just as well as a `&Target`.
wherever `&Target` is acceptable, `&Self` works just as well as `&Target`.
Copy link
Author

@CAD97 CAD97 Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally wanted to have a literal "as a" here, but I'd rather completely avoid the a/an question for &Type since this is still grammatically correct without the article, if not more correct (due to the lack of an article on &Self).


### Examples from the standard library

Expand Down