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,