From eab1e095c6d837b0788bfd88e8caca9e4d9b8f84 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Mon, 19 Oct 2015 01:43:48 -0600 Subject: [PATCH] Fix minor syntax error in example. --- leaking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaking.md b/leaking.md index 1f72a4c..a5d5742 100644 --- a/leaking.md +++ b/leaking.md @@ -135,7 +135,7 @@ impl Rc { fn new(data: T) -> Self { unsafe { // Wouldn't it be nice if heap::allocate worked like this? - let ptr = heap::allocate>(); + let ptr = heap::allocate::>(); ptr::write(ptr, RcBox { data: data, ref_count: 1,