Skip to content

Commit 207e7b9

Browse files
committed
---
yaml --- r: 5318 b: refs/heads/master c: fc0bf12 h: refs/heads/master v: v3
1 parent 558085d commit 207e7b9

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: 906f1fc425a827d7bbbb87a6e86ce0aa7faf0bb8
2+
refs/heads/master: fc0bf125168ec3df75bc57c250a62d3ea225a546

trunk/src/lib/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
tag t<@T> { none; some(T); }
44

5-
fn get<@T>(opt: t<T>) -> T {
6-
alt opt { some(x) { x } none. { fail "option none" } }
5+
fn get<@T>(opt: t<T>) -> &T {
6+
alt opt { some(x) { ret x; } none. { fail "option none"; } }
77
}
88

99
fn map<@T, @U>(f: block(T) -> U, opt: t<T>) -> t<U> {

0 commit comments

Comments
 (0)