From 470397617b8bcb3300d1c3e423a1191e1239e654 Mon Sep 17 00:00:00 2001 From: David Irvine Date: Sat, 27 Jun 2015 13:44:57 +0100 Subject: [PATCH] Remove spurious yield in example --- README.md | 3 --- examples/simple.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/README.md b/README.md index 95612c7..59b5e6d 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,6 @@ fn main() { println!("4. Begin counting ..."); for i in 0..5 { println!("Counting {}", i); - - // Yield to it's parent - Coroutine::sched(); } println!("5. Counting finished"); }).join().unwrap(); diff --git a/examples/simple.rs b/examples/simple.rs index 5ca57dd..4b54727 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -18,9 +18,6 @@ fn main() { println!("4. Begin counting ..."); for i in 0..5 { println!("Counting {}", i); - - // Yield to it's parent - Coroutine::sched(); } println!("5. Counting finished"); }).join().unwrap();