Skip to content

Commit 751cac2

Browse files
committed
---
yaml --- r: 24157 b: refs/heads/master c: 473a866 h: refs/heads/master i: 24155: 475e8e8 v: v3
1 parent e961ec5 commit 751cac2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 7acf89c022500437e65f0f17e4ca3404fabf5f15
2+
refs/heads/master: 473a866733b085419b41b2d2f2708a49c079f89e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/result.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ pure fn to_either<T: Copy, U: Copy>(res: &Result<U, T>) -> Either<T, U> {
101101
* ok(parse_bytes(buf))
102102
* }
103103
*/
104-
fn chain<T, U: Copy, V: Copy>(+res: Result<T, V>, op: fn(+t: T) -> Result<U, V>)
105-
-> Result<U, V> {
104+
fn chain<T, U: Copy, V: Copy>(+res: Result<T, V>, op: fn(+t: T)
105+
-> Result<U, V>) -> Result<U, V> {
106106
// XXX: Should be writable with move + match
107107
if res.is_ok() {
108108
op(unwrap(res))
@@ -309,7 +309,7 @@ fn map_opt<T,U:Copy,V:Copy>(
309309
* to accommodate an error like the vectors being of different lengths.
310310
*/
311311
fn map_vec2<S,T,U:Copy,V:Copy>(ss: &[S], ts: &[T],
312-
op: fn((&S),(&T)) -> Result<V,U>) -> Result<~[V],U> {
312+
op: fn((&S),(&T)) -> Result<V,U>) -> Result<~[V],U> {
313313

314314
assert vec::same_length(ss, ts);
315315
let n = vec::len(ts);

trunk/src/libstd/json.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ mod tests {
10481048
mk_dict(~[
10491049
(~"a", Null),
10501050
(~"b", Boolean(true))]));
1051-
assert eq(result::get(&from_str(~"\n{ \"a\": null, \"b\" : true }\n")),
1051+
assert eq(result::get(&from_str(
1052+
~"\n{ \"a\": null, \"b\" : true }\n")),
10521053
mk_dict(~[
10531054
(~"a", Null),
10541055
(~"b", Boolean(true))]));

0 commit comments

Comments
 (0)