diff options
Diffstat (limited to 'core/examples/hello_world.rs')
-rw-r--r-- | core/examples/hello_world.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/hello_world.rs b/core/examples/hello_world.rs index 3b63d2bda..11fc5ff0e 100644 --- a/core/examples/hello_world.rs +++ b/core/examples/hello_world.rs @@ -35,7 +35,7 @@ fn main() { } // Write the contents of every buffer to stdout - for buf in zero_copy { + if let Some(buf) = zero_copy { out.write_all(&buf).unwrap(); } |