From 263136d389ec72d8ab52d3ad8303a100fd1d4254 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 18 Dec 2012 17:03:12 -0800 Subject: [PATCH] 'trait instance' -> 'object' --- doc/tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 48d05165597..7ba24197678 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -2143,11 +2143,11 @@ for example, an `@Circle` may not be cast to an `~Drawable`. # impl int: Drawable { fn draw() {} } # fn new_circle() -> int { 1 } # fn new_rectangle() -> int { 2 } -// A managed trait instance +// A managed object let boxy: @Drawable = @new_circle() as @Drawable; -// An owned trait instance +// An owned object let owny: ~Drawable = ~new_circle() as ~Drawable; -// A borrowed trait instance +// A borrowed object let stacky: &Drawable = &new_circle() as &Drawable; ~~~