Skip to content

Commit e8273ed

Browse files
committed
---
yaml --- r: 5319 b: refs/heads/master c: d1c27ba h: refs/heads/master i: 5317: 558085d 5315: 5e42817 5311: e5e921d v: v3
1 parent 207e7b9 commit e8273ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fc0bf125168ec3df75bc57c250a62d3ea225a546
2+
refs/heads/master: d1c27ba9e06e08e1dc27b493144e467d0efd526c

trunk/src/lib/option.rs

+2-2
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) { ret x; } none. { fail "option none"; } }
5+
fn get<@T>(opt: t<T>) -> T {
6+
alt opt { some(x) { 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)