Docs and grammar
diff --git a/examples/panic-result.rs b/examples/panic-result.rs
index 6308240..b93f060 100644
--- a/examples/panic-result.rs
+++ b/examples/panic-result.rs
@@ -56,7 +56,7 @@
// Block on the future and report its result.
match executor::block_on(handle) {
- None => println!("The task was cancelled."),
+ None => println!("The task was canceled."),
Some(Ok(val)) => println!("The task completed with {:?}", val),
Some(Err(_)) => println!("The task has panicked"),
}
@@ -68,7 +68,7 @@
// Block on the future and report its result.
match executor::block_on(handle) {
- None => println!("The task was cancelled."),
+ None => println!("The task was canceled."),
Some(Ok(val)) => println!("The task completed with {:?}", val),
Some(Err(_)) => println!("The task has panicked"),
}