diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-21 14:43:24 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-21 15:06:06 -0800 |
| commit | de150e02aef60b0744be213f8f5f04e33c833bbd (patch) | |
| tree | edbd98cc6c32f04e6fe568605d307282a60f102b | |
| parent | 52b16230891be1548ffe9aa2a57388aac6dba204 (diff) | |
| download | rust-de150e02aef60b0744be213f8f5f04e33c833bbd.tar.gz rust-de150e02aef60b0744be213f8f5f04e33c833bbd.zip | |
tutorial: Un-xfail some working examples
| -rw-r--r-- | doc/tutorial.md | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 433187dd773..ecafc77ba31 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -642,7 +642,6 @@ you use the matching to get at the contents of data types. Remember that `(float, float)` is a tuple of two floats: ~~~~ -## xfail-test fn angle(vec: (float, float)) -> float { alt vec { (0f, y) if y < 0f { 1.5 * float::consts::pi } @@ -896,7 +895,6 @@ should almost always specify the type of that argument as `fn()`, so that callers have the flexibility to pass whatever they want. ~~~~ -## xfail-test fn call_twice(f: fn()) { f(); f(); } call_twice({|| "I am a stack closure"; }); call_twice(fn@() { "I am a boxed closure"; }); @@ -1156,7 +1154,6 @@ get at their contents. All variant constructors can be used as patterns, as in this definition of `area`: ~~~~ -## xfail-test # type point = {x: float, y: float}; # enum shape { circle(point, float), rectangle(point, point) } fn area(sh: shape) -> float { |
