diff options
Diffstat (limited to 'src/doc/tutorial.md')
| -rw-r--r-- | src/doc/tutorial.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 9322985a922..61c71b273cb 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2518,8 +2518,8 @@ valid types: trait Foo {} trait Bar<T> {} -fn sendable_foo(f: Box<Foo:Send>) { /* ... */ } -fn shareable_bar<T: Share>(b: &Bar<T>: Share) { /* ... */ } +fn sendable_foo(f: Box<Foo + Send>) { /* ... */ } +fn shareable_bar<T: Share>(b: &Bar<T> + Share) { /* ... */ } ~~~ When no colon is specified (such as the type `~Foo`), it is inferred that the |
