From 7398fc4c3f6aaf5e8cc782673eb23bc816753c88 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 7 Jun 2022 20:17:44 +0200 Subject: [PATCH] Simplify GCD program --- examples/euclidean_algo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/euclidean_algo.rs b/examples/euclidean_algo.rs index f43e616..417dfb9 100644 --- a/examples/euclidean_algo.rs +++ b/examples/euclidean_algo.rs @@ -9,7 +9,7 @@ fn main() { let zero_page_data = input .trim() - .split(' ') + .split_whitespace() .map(|s| s.parse::().unwrap()) .collect::>(); @@ -42,5 +42,5 @@ fn main() { cpu.run(); - println!("GCD is {:?}", cpu.registers.accumulator); + println!("GCD is {}", cpu.registers.accumulator); }