Skip to content

Commit 8b1f19b

Browse files
committed
---
yaml --- r: 6642 b: refs/heads/master c: e3a066b h: refs/heads/master v: v3
1 parent 7ea6151 commit 8b1f19b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 44ffd8e3aadccbceb544074a3b96e255d0d97325
2+
refs/heads/master: e3a066bde87255ce83fc83a27c452f088993466c

trunk/src/libstd/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Function: maybe
7070
7171
Applies a function to the contained value or returns a default
7272
*/
73-
fn maybe<T, U>(def: U, f: block(T) -> U, opt: t<T>) -> U {
73+
fn maybe<T, U>(def: U, opt: t<T>, f: block(T) -> U) -> U {
7474
alt opt { none. { def } some(t) { f(t) } }
7575
}
7676

@@ -80,7 +80,7 @@ Function: may
8080
8181
Performs an operation on the contained value or does nothing
8282
*/
83-
fn may<T>(f: block(T), opt: t<T>) {
83+
fn may<T>(opt: t<T>, f: block(T)) {
8484
alt opt { none. {/* nothing */ } some(t) { f(t); } }
8585
}
8686

0 commit comments

Comments
 (0)