Skip to content

Commit 752c75b

Browse files
authored
Fix syntax in RFC 2145
Change `pub Trait` to `pub trait Trait`
1 parent 24cf67a commit 752c75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/2145-type-privacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ sufficiently smart type inference.
387387
mod m {
388388
struct Priv;
389389
pub struct Pub<T>(T);
390-
pub Trait { type A; }
390+
pub trait Trait { type A; }
391391

392392
// This is a private impl because `Pub<Priv>` is a private type
393393
impl Pub<Priv> {

0 commit comments

Comments
 (0)