Rollup merge of #29162 - tsion:fix-nomicon-typo, r=alexcrichton

r? @steveklabnik
This commit is contained in:
Steve Klabnik 2015-10-20 09:43:47 -04:00
commit 53c4b4d412

View file

@ -135,7 +135,7 @@ impl<T> Rc<T> {
fn new(data: T) -> Self {
unsafe {
// Wouldn't it be nice if heap::allocate worked like this?
let ptr = heap::allocate<RcBox<T>>();
let ptr = heap::allocate::<RcBox<T>>();
ptr::write(ptr, RcBox {
data: data,
ref_count: 1,