Skip to content

Commit 0bd1186

Browse files
committed
---
yaml --- r: 5345 b: refs/heads/master c: d9c664e h: refs/heads/master i: 5343: 67ac08a v: v3
1 parent aa0eb5d commit 0bd1186

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: 679c2d25a1bfc425cafa984851b2f50c30e8ebe9
2+
refs/heads/master: d9c664e3fabe50fcf8fadf127d4519b6d7ce595a

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)