@@ -749,15 +749,15 @@ An example of a module:
749
749
mod math {
750
750
type complex = (f64, f64);
751
751
fn sin(f: f64) -> f64 {
752
- // ...
752
+ ...
753
753
# fail;
754
754
}
755
755
fn cos(f: f64) -> f64 {
756
- // ...
756
+ ...
757
757
# fail;
758
758
}
759
759
fn tan(f: f64) -> f64 {
760
- // ...
760
+ ...
761
761
# fail;
762
762
}
763
763
}
@@ -884,7 +884,7 @@ mod foo {
884
884
}
885
885
886
886
fn helper(x: int, y: int) {
887
- // ...
887
+ ...
888
888
}
889
889
}
890
890
@@ -912,11 +912,11 @@ mod foo {
912
912
}
913
913
914
914
fn secondary() {
915
- // ...
915
+ ...
916
916
}
917
917
918
918
fn helper(x: int, y: int) {
919
- // ...
919
+ ...
920
920
}
921
921
}
922
922
~~~~~~~~
@@ -1028,7 +1028,7 @@ pure fn lt_42(x: int) -> bool {
1028
1028
Pure functions may call other pure functions:
1029
1029
1030
1030
~~~~ {.xfail-test}
1031
- pure fn pure_length<T>(ls: List<T>) -> uint { /* ... */ }
1031
+ pure fn pure_length<T>(ls: List<T>) -> uint { ... }
1032
1032
1033
1033
pure fn nonempty_list<T>(ls: List<T>) -> bool { pure_length(ls) > 0u }
1034
1034
~~~~
@@ -1327,7 +1327,7 @@ specified, after the `impl` keyword.
1327
1327
# trait seq<T> { }
1328
1328
1329
1329
impl<T> ~[T]: seq<T> {
1330
- // ...
1330
+ ...
1331
1331
}
1332
1332
impl u32: seq<bool> {
1333
1333
/* Treat the integer as a sequence of bits */
@@ -1426,13 +1426,13 @@ An example of attributes:
1426
1426
// A function marked as a unit test
1427
1427
#[test]
1428
1428
fn test_foo() {
1429
- // ...
1429
+ ...
1430
1430
}
1431
1431
1432
1432
// A conditionally-compiled module
1433
1433
#[cfg(target_os="linux")]
1434
1434
mod bar {
1435
- // ...
1435
+ ...
1436
1436
}
1437
1437
1438
1438
// A documentation attribute
@@ -3036,7 +3036,7 @@ let ch = comm::Chan(po);
3036
3036
3037
3037
do task::spawn {
3038
3038
// let task run, do other things
3039
- // ...
3039
+ ...
3040
3040
comm::send(ch, true);
3041
3041
};
3042
3042
0 commit comments