Skip to content

Commit 8222970

Browse files
committed
Fix minor syntax error in example.
1 parent d3f4978 commit 8222970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/nomicon/leaking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<T> Rc<T> {
135135
fn new(data: T) -> Self {
136136
unsafe {
137137
// Wouldn't it be nice if heap::allocate worked like this?
138-
let ptr = heap::allocate<RcBox<T>>();
138+
let ptr = heap::allocate::<RcBox<T>>();
139139
ptr::write(ptr, RcBox {
140140
data: data,
141141
ref_count: 1,

0 commit comments

Comments
 (0)