Skip to content

Commit 3569053

Browse files
committed
---
yaml --- r: 2719 b: refs/heads/master c: 264c3b5 h: refs/heads/master i: 2717: 9873553 2715: 2954a19 2711: 50a84b9 2703: e4392bb 2687: ce531ef v: v3
1 parent 67a830c commit 3569053

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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: da0e961f615376537dee070273751fa4f4850a2e
2+
refs/heads/master: 264c3b5be40ac4e7537d614dc019ec5651f5addb

trunk/src/lib/generic_os.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
fn getenv(str n) -> option::t[str] {
22
auto s = os::libc::getenv(str::buf(n));
3-
if ((s as int) == 0) {
4-
ret option::none[str];
3+
ret if ((s as int) == 0) {
4+
option::none[str]
55
} else {
6-
ret option::some[str](str::str_from_cstr(s));
7-
}
6+
option::some[str](str::str_from_cstr(s))
7+
};
88
}
99

0 commit comments

Comments
 (0)