File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1559,7 +1559,7 @@ Type parameters can be specified for a trait to make it generic. These appear
1559
1559
after the trait name, using the same syntax used in [ generic
1560
1560
functions] ( #generic-functions ) .
1561
1561
1562
- ```
1562
+ ``` ignore
1563
1563
trait Seq<T> {
1564
1564
fn len(&self) -> uint;
1565
1565
fn elt_at(&self, n: uint) -> T;
@@ -3217,7 +3217,7 @@ expression's captured environment.
3217
3217
In this example, we define a function ` ten_times ` that takes a higher-order
3218
3218
function argument, and call it with a lambda expression as an argument.
3219
3219
3220
- ```
3220
+ ``` ignore
3221
3221
fn ten_times(f: |int|) {
3222
3222
let mut i = 0;
3223
3223
while i < 10 {
@@ -3821,7 +3821,7 @@ or `extern`), a sequence of input types and an output type.
3821
3821
3822
3822
An example of a ` fn ` type:
3823
3823
3824
- ```
3824
+ ``` ignore
3825
3825
fn add(x: int, y: int) -> int {
3826
3826
return x + y;
3827
3827
}
@@ -3849,7 +3849,7 @@ The type of a closure mapping an input of type `A` to an output of type `B` is
3849
3849
3850
3850
An example of creating and calling a closure:
3851
3851
3852
- ``` rust
3852
+ ``` ignore
3853
3853
let captured_var = 10i;
3854
3854
3855
3855
let closure_no_args = || println!("captured_var={}", captured_var);
You can’t perform that action at this time.
0 commit comments