docs: minor tutorial fixes

This commit is contained in:
Andrew Paseltiner 2012-10-04 20:33:06 -04:00
parent 8cb3da576d
commit 1ee056672b
1 changed files with 11 additions and 11 deletions

View File

@ -358,7 +358,7 @@ This may sound intricate, but it is super-useful and will grow on you.
## Types ## Types
The basic types include the usual boolean, integral, and floating point types. The basic types include the usual boolean, integral, and floating-point types.
------------------------- ----------------------------------------------- ------------------------- -----------------------------------------------
`()` Nil, the type that has only a single value `()` Nil, the type that has only a single value
@ -367,8 +367,8 @@ The basic types include the usual boolean, integral, and floating point types.
`i8`, `i16`, `i32`, `i64` Signed integers with a specific size (in bits) `i8`, `i16`, `i32`, `i64` Signed integers with a specific size (in bits)
`u8`, `u16`, `u32`, `u64` Unsigned integers with a specific size `u8`, `u16`, `u32`, `u64` Unsigned integers with a specific size
`float` The largest floating-point type efficiently supported on the target machine `float` The largest floating-point type efficiently supported on the target machine
`f32`, `f64` Floating-point types with a specific size. `f32`, `f64` Floating-point types with a specific size
`char` A Unicode character (32 bits). `char` A Unicode character (32 bits)
------------------------- ----------------------------------------------- ------------------------- -----------------------------------------------
These can be combined in composite types, which will be described in These can be combined in composite types, which will be described in
@ -378,7 +378,7 @@ while N should be a literal number):
------------------------- ----------------------------------------------- ------------------------- -----------------------------------------------
`[T * N]` Vector (like an array in other languages) with N elements `[T * N]` Vector (like an array in other languages) with N elements
`[mut T * N]` Mutable vector with N elements `[mut T * N]` Mutable vector with N elements
`(T1, T2)` Tuple type. Any arity above 1 is supported `(T1, T2)` Tuple type; any arity above 1 is supported
`&T`, `~T`, `@T` [Pointer types](#boxes-and-pointers) `&T`, `~T`, `@T` [Pointer types](#boxes-and-pointers)
------------------------- ----------------------------------------------- ------------------------- -----------------------------------------------
@ -1319,7 +1319,7 @@ Strings are implemented with vectors of `[u8]`, though they have a distinct
type. They support most of the same allocation options as type. They support most of the same allocation options as
vectors, though the string literal without a storage sigil, e.g. vectors, though the string literal without a storage sigil, e.g.
`"foo"` is treated differently than a comparable vector (`[foo]`). `"foo"` is treated differently than a comparable vector (`[foo]`).
Wheras plain vectors are stack-allocated fixed length vectors, Whereas plain vectors are stack-allocated fixed-length vectors,
plain strings are region pointers to read-only memory. plain strings are region pointers to read-only memory.
~~~ ~~~