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.
1 parent 42db8c1 commit 002bb5bCopy full SHA for 002bb5b
unique.md
@@ -37,7 +37,7 @@ fn foo() {
37
```
38
39
Here `x` is a pointer to a location on the heap which contains the value `75`.
40
-`x` has type `Box<isize>`; we could have written `let x: Box<isize> =
+`x` has type `Box<i32>`; we could have written `let x: Box<i32> =
41
Box::new(75);`. This is similar to writing `int* x = new int(75);` in C++.
42
Unlike in C++, Rust will tidy up the memory for us, so there is no need to call
43
`free` or `delete`<sup>[1](#1)</sup>. Unique pointers behave similarly to
0 commit comments