diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-07-30 09:41:05 -0400 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-31 07:30:48 -0700 |
| commit | ea1b6376540ed559ed5d95567c613511390bc578 (patch) | |
| tree | dbd9781a5a2cca9b8cba650813c1064984685205 | |
| parent | 4c196c27c4ff8002e034211720530b7c0ef59a30 (diff) | |
| download | rust-ea1b6376540ed559ed5d95567c613511390bc578.tar.gz rust-ea1b6376540ed559ed5d95567c613511390bc578.zip | |
fix formatting in pointer guide table
| -rw-r--r-- | src/doc/guide-pointers.md | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/doc/guide-pointers.md b/src/doc/guide-pointers.md index 5ec16e852a5..d5bf7c980b7 100644 --- a/src/doc/guide-pointers.md +++ b/src/doc/guide-pointers.md @@ -733,18 +733,15 @@ This part is coming soon. Here's a quick rundown of Rust's pointer types: -| Type | Name | Summary | -|--------------|---------------------|-------------------------------------------| -| `&T` | Reference | Allows one or more references to read `T` | -| `&mut T` | Mutable Reference | Allows a single reference to | -| | | read and write `T` | -| `Box<T>` | Box | Heap allocated `T` with a single owner | -| | | that may read and write `T`. | -| `Rc<T>` | "arr cee" pointer | Heap allocated `T` with many readers | -| `Arc<T>` | Arc pointer | Same as above, but safe sharing across | -| | | threads | -| `*const T` | Raw pointer | Unsafe read access to `T` | -| `*mut T` | Mutable raw pointer | Unsafe read and write access to `T` | +| Type | Name | Summary | +|--------------|---------------------|---------------------------------------------------------------------| +| `&T` | Reference | Allows one or more references to read `T` | +| `&mut T` | Mutable Reference | Allows a single reference to read and write `T` | +| `Box<T>` | Box | Heap allocated `T` with a single owner that may read and write `T`. | +| `Rc<T>` | "arr cee" pointer | Heap allocated `T` with many readers | +| `Arc<T>` | Arc pointer | Same as above, but safe sharing across threads | +| `*const T` | Raw pointer | Unsafe read access to `T` | +| `*mut T` | Mutable raw pointer | Unsafe read and write access to `T` | # Related resources |
