We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b314f84 + 8222970 commit 53c4b4dCopy full SHA for 53c4b4d
src/doc/nomicon/leaking.md
@@ -135,7 +135,7 @@ impl<T> Rc<T> {
135
fn new(data: T) -> Self {
136
unsafe {
137
// Wouldn't it be nice if heap::allocate worked like this?
138
- let ptr = heap::allocate<RcBox<T>>();
+ let ptr = heap::allocate::<RcBox<T>>();
139
ptr::write(ptr, RcBox {
140
data: data,
141
ref_count: 1,
0 commit comments