summaryrefslogtreecommitdiff
path: root/chromium/base/memory/scoped_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/memory/scoped_ptr.h')
-rw-r--r--chromium/base/memory/scoped_ptr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/base/memory/scoped_ptr.h b/chromium/base/memory/scoped_ptr.h
index c1fed9ae459..790fecce71e 100644
--- a/chromium/base/memory/scoped_ptr.h
+++ b/chromium/base/memory/scoped_ptr.h
@@ -68,11 +68,11 @@
// is different though because we are constructing a temporary on the return
// line and thus can avoid needing to call Pass().
//
-// Pass() properly handles upcast in assignment, i.e. you can assign
-// scoped_ptr<Child> to scoped_ptr<Parent>:
+// Pass() properly handles upcast in initialization, i.e. you can use a
+// scoped_ptr<Child> to initialize a scoped_ptr<Parent>:
//
// scoped_ptr<Foo> foo(new Foo());
-// scoped_ptr<FooParent> parent = foo.Pass();
+// scoped_ptr<FooParent> parent(foo.Pass());
//
// PassAs<>() should be used to upcast return value in return statement:
//