Skip to content

Commit 182e3c8

Browse files
committed
---
yaml --- r: 22318 b: refs/heads/snap-stage3 c: 1ee0566 h: refs/heads/master v: v3
1 parent be4dc1e commit 182e3c8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8cb3da576deb06a7c298761c01708ea90b18659b
4+
refs/heads/snap-stage3: 1ee056672bd7b2b73561394a5e949fb4042640c5
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ This may sound intricate, but it is super-useful and will grow on you.
358358

359359
## Types
360360

361-
The basic types include the usual boolean, integral, and floating point types.
361+
The basic types include the usual boolean, integral, and floating-point types.
362362

363363
------------------------- -----------------------------------------------
364364
`()` 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.
367367
`i8`, `i16`, `i32`, `i64` Signed integers with a specific size (in bits)
368368
`u8`, `u16`, `u32`, `u64` Unsigned integers with a specific size
369369
`float` The largest floating-point type efficiently supported on the target machine
370-
`f32`, `f64` Floating-point types with a specific size.
371-
`char` A Unicode character (32 bits).
370+
`f32`, `f64` Floating-point types with a specific size
371+
`char` A Unicode character (32 bits)
372372
------------------------- -----------------------------------------------
373373

374374
These can be combined in composite types, which will be described in
@@ -378,7 +378,7 @@ while N should be a literal number):
378378
------------------------- -----------------------------------------------
379379
`[T * N]` Vector (like an array in other languages) with N elements
380380
`[mut T * N]` Mutable vector with N elements
381-
`(T1, T2)` Tuple type. Any arity above 1 is supported
381+
`(T1, T2)` Tuple type; any arity above 1 is supported
382382
`&T`, `~T`, `@T` [Pointer types](#boxes-and-pointers)
383383
------------------------- -----------------------------------------------
384384

@@ -863,7 +863,7 @@ the return type follows the arrow.
863863

864864
~~~~
865865
fn line(a: int, b: int, x: int) -> int {
866-
return a*x + b;
866+
return a * x + b;
867867
}
868868
~~~~
869869

@@ -874,7 +874,7 @@ expression.
874874

875875
~~~~
876876
fn line(a: int, b: int, x: int) -> int {
877-
a*x + b
877+
a * x + b
878878
}
879879
~~~~
880880

@@ -891,11 +891,11 @@ fn do_nothing_the_easy_way() { }
891891
Ending the function with a semicolon like so is equivalent to returning `()`.
892892

893893
~~~~
894-
fn line(a: int, b: int, x: int) -> int { a*x + b }
895-
fn oops(a: int, b: int, x: int) -> () { a*x + b; }
894+
fn line(a: int, b: int, x: int) -> int { a * x + b }
895+
fn oops(a: int, b: int, x: int) -> () { a * x + b; }
896896
897-
assert 8 == line(5,3,1);
898-
assert () == oops(5,3,1);
897+
assert 8 == line(5, 3, 1);
898+
assert () == oops(5, 3, 1);
899899
~~~~
900900

901901
Methods are like functions, except that they are defined for a specific
@@ -1319,7 +1319,7 @@ Strings are implemented with vectors of `[u8]`, though they have a distinct
13191319
type. They support most of the same allocation options as
13201320
vectors, though the string literal without a storage sigil, e.g.
13211321
`"foo"` is treated differently than a comparable vector (`[foo]`).
1322-
Wheras plain vectors are stack-allocated fixed length vectors,
1322+
Whereas plain vectors are stack-allocated fixed-length vectors,
13231323
plain strings are region pointers to read-only memory.
13241324
13251325
~~~

0 commit comments

Comments
 (0)