You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jimblandy opened this issue
Sep 4, 2012
· 2 comments
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
of was part of the old syntax for trait implementation declarations. This should be a fairly simple fix.
burg: 'impl foo of bar' got changed to 'impl foo: bar', right?
nmatsakis: burg: not...exactly
nmatsakis: more like `impl of foo for bar` got changed to `impl bar: foo`
nmatsakis: that is, `impl rcvr_type: trait_type`
Back when traits were called ifaces, there was such a thing as an interface-less implementation that omitted the of Trait part; that's the part that used to be known as an "of clause".
We now have trait-less implementations; the text in that section also needs to be edited to remove a mention of of.
I think that "—the of clause refers to a type, rather than defining one." should just be nixed.
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
para 2. says, "the 'of' clause refers to a type, rather than defining one."
I can't tell what an "'of' clause" is; there's no appearance of the token 'of' in the code.
The phrase "'of' clause" also occurs in 14.7, "Traits-less implementations".
The text was updated successfully, but these errors were encountered: