mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
Change pretty-exact to pp-exact
This commit is contained in:
parent
fa69739320
commit
683e7a45a6
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
// actually this doesn't quite look how I want it to, but I can't
|
||||
// get the prettyprinter to indent the long expr
|
||||
@ -18,8 +18,8 @@ fn main() {
|
||||
let y =
|
||||
match x {
|
||||
Some(_) =>
|
||||
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
|
||||
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
|
||||
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very"
|
||||
+ ~"very" + ~"very" + ~"long" + ~"string",
|
||||
None => ~"none"
|
||||
};
|
||||
assert y == ~"some(_)";
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn main() {
|
||||
let x = Some(3);
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn main() {
|
||||
let x = Some(3);
|
||||
|
@ -8,10 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn f(f: fn@(int)) { f(10) }
|
||||
fn f(f: @fn(int)) { f(10) }
|
||||
|
||||
fn main() {
|
||||
do f |i| { assert i == 10 }
|
||||
}
|
||||
fn main() { do f |i| { assert i == 10 } }
|
||||
|
Loading…
Reference in New Issue
Block a user