about summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2015-10-19 01:43:48 -0600
committerScott Olson <scott@solson.me>2015-10-19 01:43:48 -0600
commit8222970f7981713cefb6aaab303741808e109cc0 (patch)
tree4b62f893bbc2c20686b20447815a5542df2a33ec
parentd3f497861d426c8724dd84f161ca21f274663963 (diff)
Fix minor syntax error in example.
-rw-r--r--src/doc/nomicon/leaking.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/nomicon/leaking.md b/src/doc/nomicon/leaking.md
index 1f72a4c1724..a5d5742a4c6 100644
--- a/src/doc/nomicon/leaking.md
+++ b/src/doc/nomicon/leaking.md
@@ -135,7 +135,7 @@ impl<T> Rc<T> {
     fn new(data: T) -> Self {
         unsafe {
             // Wouldn't it be nice if heap::allocate worked like this?
-            let ptr = heap::allocate<RcBox<T>>();
+            let ptr = heap::allocate::<RcBox<T>>();
             ptr::write(ptr, RcBox {
                 data: data,
                 ref_count: 1,