about summary refs log tree commit diff
path: root/src/doc/guide-unsafe.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/guide-unsafe.md')
-rw-r--r--src/doc/guide-unsafe.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md
index 5b248126c80..bda1b345632 100644
--- a/src/doc/guide-unsafe.md
+++ b/src/doc/guide-unsafe.md
@@ -661,6 +661,9 @@ extern {
     fn abort() -> !;
 }
 
+#[lang = "owned_box"]
+pub struct Box<T>(*mut T);
+
 #[lang="exchange_malloc"]
 unsafe fn allocate(size: uint, _align: uint) -> *mut u8 {
     let p = libc::malloc(size as libc::size_t) as *mut u8;