Skip to content

Commit 53c4b4d

Browse files
committed
Rollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton
r? @steveklabnik
2 parents b314f84 + 8222970 commit 53c4b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/nomicon/leaking.md

+1-1
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)