We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a830c commit 3569053Copy full SHA for 3569053
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: da0e961f615376537dee070273751fa4f4850a2e
+refs/heads/master: 264c3b5be40ac4e7537d614dc019ec5651f5addb
trunk/src/lib/generic_os.rs
@@ -1,9 +1,9 @@
fn getenv(str n) -> option::t[str] {
auto s = os::libc::getenv(str::buf(n));
3
- if ((s as int) == 0) {
4
- ret option::none[str];
+ ret if ((s as int) == 0) {
+ option::none[str]
5
} else {
6
- ret option::some[str](str::str_from_cstr(s));
7
- }
+ option::some[str](str::str_from_cstr(s))
+ };
8
}
9
0 commit comments