Commit 542ca6cb authored by Jeremy Soller's avatar Jeremy Soller

Fix example

parent 961983e7
...@@ -42,14 +42,9 @@ redox_installer = "0.1" ...@@ -42,14 +42,9 @@ redox_installer = "0.1"
// src/main.rs // src/main.rs
extern crate redox_installer; extern crate redox_installer;
use std::io; fn main() {
fn main() {
let stdout = io::stdout();
let mut stdout = stdout.lock();
let mut config = redox_installer::Config::default(); let mut config = redox_installer::Config::default();
... ...
redox_installer::install(&mut stdout, &config); redox_installer::install(config);
} }
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment