Skip to content

Commit 280f537

Browse files
committed
Fix core examples
1 parent 65fd377 commit 280f537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/examples/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() {
1616
let mut core = Core::new().unwrap();
1717

1818
let host = Local::new().and_then(|host| {
19-
command::factory(&host, "whoami", None).and_then(|mut cmd| {
19+
Command::new(&host, "whoami", None).and_then(|mut cmd| {
2020
cmd.exec().map(|out| {
2121
println!("I'm currently running as {}", String::from_utf8_lossy(&out.stdout).trim());
2222
})

0 commit comments

Comments
 (0)