diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-01 17:30:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-01 19:16:06 -0700 |
| commit | b355936b4da0831f47afe8f251daee503c8caa32 (patch) | |
| tree | 9f870e26f773af714cbcf7f315de5ff3722300c3 /src/test/pretty | |
| parent | dc499f193e473abc78c557feaa86969bbe7aa159 (diff) | |
| download | rust-b355936b4da0831f47afe8f251daee503c8caa32.tar.gz rust-b355936b4da0831f47afe8f251daee503c8caa32.zip | |
Convert ret to return
Diffstat (limited to 'src/test/pretty')
| -rw-r--r-- | src/test/pretty/blank-lines.rs | 2 | ||||
| -rw-r--r-- | src/test/pretty/block-arg-disambig.rs | 2 | ||||
| -rw-r--r-- | src/test/pretty/disamb-stmt-expr.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/pretty/blank-lines.rs b/src/test/pretty/blank-lines.rs index 2c22432401b..3ef46a721ae 100644 --- a/src/test/pretty/blank-lines.rs +++ b/src/test/pretty/blank-lines.rs @@ -11,5 +11,5 @@ fn f() -> [int]/3 { - ret enterprise; + return enterprise; } diff --git a/src/test/pretty/block-arg-disambig.rs b/src/test/pretty/block-arg-disambig.rs index 8a4297d95b2..ea4563a579c 100644 --- a/src/test/pretty/block-arg-disambig.rs +++ b/src/test/pretty/block-arg-disambig.rs @@ -1,5 +1,5 @@ // FIXME: The disambiguation the pretty printer does here // is probably not necessary anymore (#2882) -fn blk1(b: fn()) -> fn@() { ret fn@() { }; } +fn blk1(b: fn()) -> fn@() { return fn@() { }; } fn test1() { (do blk1 { debug!{"hi"}; })(); } diff --git a/src/test/pretty/disamb-stmt-expr.rs b/src/test/pretty/disamb-stmt-expr.rs index 546020b6cd8..61323152af1 100644 --- a/src/test/pretty/disamb-stmt-expr.rs +++ b/src/test/pretty/disamb-stmt-expr.rs @@ -1,8 +1,8 @@ // pp-exact // Here we check that the parentheses around the body of `wsucc()` are -// preserved. They are needed to disambiguate `{ret n+1}; - 0` from -// `({ret n+1}-0)`. +// preserved. They are needed to disambiguate `{return n+1}; - 0` from +// `({return n+1}-0)`. fn id(f: fn() -> int) -> int { f() } |
