| ... | @@ -191,6 +191,8 @@ pub struct InStream { | ... | @@ -191,6 +191,8 @@ pub struct InStream { |
| 191 | } | 191 | } |
| 192 | } | 192 | } |
| 193 | | 193 | |
| | 194 | /// Upon success, the stream is in an uninitialized state. To continue using it, |
| | 195 | /// you must use the open() function. |
| 194 | pub fn close(is: &InStream) -> %void { | 196 | pub fn close(is: &InStream) -> %void { |
| 195 | switch (@compileVar("os")) { | 197 | switch (@compileVar("os")) { |
| 196 | linux => { | 198 | linux => { |
| ... | @@ -206,6 +208,7 @@ pub struct InStream { | ... | @@ -206,6 +208,7 @@ pub struct InStream { |
| 206 | else => error.Unexpected, | 208 | else => error.Unexpected, |
| 207 | } | 209 | } |
| 208 | } | 210 | } |
| | 211 | return; |
| 209 | } | 212 | } |
| 210 | }, | 213 | }, |
| 211 | else => @compileError("unsupported OS"), | 214 | else => @compileError("unsupported OS"), |