From ebebf23851f22d6b2643f64fe559474cfb216cca Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Mon, 21 Oct 2019 21:48:19 +0200 Subject: [PATCH] Update README.md --- 05_safe_globals/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/05_safe_globals/README.md b/05_safe_globals/README.md index 1e289969..f54f95e3 100644 --- a/05_safe_globals/README.md +++ b/05_safe_globals/README.md @@ -39,6 +39,17 @@ you can check out implemntations in the [spin crate] or the [parking lot crate]. [spin crate]: https://github.com/mvdnes/spin-rs [parking lot crate]: https://github.com/Amanieu/parking_lot +### Give it a try + +```console +make qemu + +[...] +[0] Hello from pure Rust! +[1] Chars written: 26 +[2] Stopping here. +``` + ## Diff to previous ```diff @@ -159,7 +170,8 @@ diff -uNr 04_zero_overhead_abstraction/src/bsp/rpi.rs 05_safe_globals/src/bsp/rp + // Convert newline to carrige return + newline. + if c == ' ' { -+ self.write_char(' ') ++ self.write_char(' +') } + + self.write_char(c);