Skip to content

Commit 150acd2

Browse files
committed
docs: Doc tests may use elipses
1 parent d0d8b7f commit 150acd2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/rust.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -749,15 +749,15 @@ An example of a module:
749749
mod math {
750750
type complex = (f64, f64);
751751
fn sin(f: f64) -> f64 {
752-
// ...
752+
...
753753
# fail;
754754
}
755755
fn cos(f: f64) -> f64 {
756-
// ...
756+
...
757757
# fail;
758758
}
759759
fn tan(f: f64) -> f64 {
760-
// ...
760+
...
761761
# fail;
762762
}
763763
}
@@ -884,7 +884,7 @@ mod foo {
884884
}
885885
886886
fn helper(x: int, y: int) {
887-
// ...
887+
...
888888
}
889889
}
890890
@@ -912,11 +912,11 @@ mod foo {
912912
}
913913
914914
fn secondary() {
915-
// ...
915+
...
916916
}
917917
918918
fn helper(x: int, y: int) {
919-
// ...
919+
...
920920
}
921921
}
922922
~~~~~~~~
@@ -1028,7 +1028,7 @@ pure fn lt_42(x: int) -> bool {
10281028
Pure functions may call other pure functions:
10291029

10301030
~~~~{.xfail-test}
1031-
pure fn pure_length<T>(ls: List<T>) -> uint { /* ... */ }
1031+
pure fn pure_length<T>(ls: List<T>) -> uint { ... }
10321032
10331033
pure fn nonempty_list<T>(ls: List<T>) -> bool { pure_length(ls) > 0u }
10341034
~~~~
@@ -1327,7 +1327,7 @@ specified, after the `impl` keyword.
13271327
# trait seq<T> { }
13281328
13291329
impl<T> ~[T]: seq<T> {
1330-
// ...
1330+
...
13311331
}
13321332
impl u32: seq<bool> {
13331333
/* Treat the integer as a sequence of bits */
@@ -1426,13 +1426,13 @@ An example of attributes:
14261426
// A function marked as a unit test
14271427
#[test]
14281428
fn test_foo() {
1429-
// ...
1429+
...
14301430
}
14311431
14321432
// A conditionally-compiled module
14331433
#[cfg(target_os="linux")]
14341434
mod bar {
1435-
// ...
1435+
...
14361436
}
14371437
14381438
// A documentation attribute
@@ -3036,7 +3036,7 @@ let ch = comm::Chan(po);
30363036
30373037
do task::spawn {
30383038
// let task run, do other things
3039-
// ...
3039+
...
30403040
comm::send(ch, true);
30413041
};
30423042

0 commit comments

Comments
 (0)