From 858415b6b089a6ebe8cf988b16f1382190b0cb24 Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Mon, 3 Jun 2019 16:28:47 -0700 Subject: [PATCH] Update context_switches.rs --- examples/context_switches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/context_switches.rs b/examples/context_switches.rs index b8add5c2..0deb3bd9 100644 --- a/examples/context_switches.rs +++ b/examples/context_switches.rs @@ -14,7 +14,7 @@ pub fn main() { pc.start().expect("Can not start the counter"); std::thread::sleep(std::time::Duration::new(1,0)); - pc.stop().expect("Can not stop the counter");; + pc.stop().expect("Can not stop the counter"); println!("Context Switches/s: {:?}", pc.read().expect("Can not read counter")); pc.reset().expect("Can not reset the counter");