Skip to content

Add Identifier Syntax to Several Chapters #1597

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

Merged
merged 10 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Fix misspellings
  • Loading branch information
ehuss committed Jan 14, 2025
commit f36e9d0b74286a018f617f6f857381fb8c0ba6d5
2 changes: 1 addition & 1 deletion src/lifetime-elision.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ r[lifetime-elision.function.output-lifetime]
* If there is exactly one lifetime used in the parameters (elided or not), that
lifetime is assigned to *all* elided output lifetimes.

r[lifetime-elision.function.reciever-lifetime]
r[lifetime-elision.function.receiver-lifetime]
In method signatures there is another rule

* If the receiver has type `&Self` or `&mut Self`, then the lifetime of that
Expand Down
4 changes: 2 additions & 2 deletions src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ mod b {
# fn main() {}
```

r[path.qualifier.super.repetion]
r[path.qualifier.super.repetition]
`super` may be repeated several times after the first `super` or `self` to refer to
ancestor modules.

Expand Down Expand Up @@ -435,7 +435,7 @@ r[path.canonical.bare-impl-prefix]
For bare implementations, it is the canonical path of the item being implemented
surrounded by <span class="parenthetical">angle (`<>`)</span> brackets.

r[path.canonical.trait-impl-preifx]
r[path.canonical.trait-impl-prefix]
For [trait implementations], it is the canonical path of the item being implemented
followed by `as` followed by the canonical path to the trait all surrounded in
<span class="parenthetical">angle (`<>`)</span> brackets.
Expand Down
2 changes: 1 addition & 1 deletion src/special-types-and-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ r[lang-types.box.deref]
from. This means that the `*` operator and the destructor of `Box<T>` are
built-in to the language.

r[lang-types.box.reciever]
r[lang-types.box.receiver]
* [Methods] can take `Box<Self>` as a receiver.

r[lang-types.box.fundamental]
Expand Down