Skip to content

Commit c1291f2

Browse files
committed
---
yaml --- r: 5992 b: refs/heads/master c: b16d901 h: refs/heads/master v: v3
1 parent 8627909 commit c1291f2

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: 91997e79aae73472704248eb0a5089a79b4d3e83
2+
refs/heads/master: b16d9019a8c0b0e7950bd897e8b59136c2d98642

trunk/src/lib/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Function: is_none
4545
4646
Returns true if the option equals none
4747
*/
48-
fn is_none<T>(opt: t<T>) -> bool {
48+
pure fn is_none<T>(opt: t<T>) -> bool {
4949
alt opt { none. { true } some(_) { false } }
5050
}
5151

@@ -54,7 +54,7 @@ Function: is_some
5454
5555
Returns true if the option contains some value
5656
*/
57-
fn is_some<T>(opt: t<T>) -> bool { !is_none(opt) }
57+
pure fn is_some<T>(opt: t<T>) -> bool { !is_none(opt) }
5858

5959
/*
6060
Function: from_maybe

0 commit comments

Comments
 (0)