mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Change pretty-exact to pp-exact
This commit is contained in:
@@ -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 } }
|
||||
|
||||
Reference in New Issue
Block a user