From 9fd24ba9c15a49f9bc2e72db75225d8bf580ec07 Mon Sep 17 00:00:00 2001 From: sheepwall <a.sve@live.se> Date: Fri, 8 Mar 2019 12:45:37 +0100 Subject: [PATCH] .. --- examples/bare3.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/examples/bare3.rs b/examples/bare3.rs index a52a2f5..3922831 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -52,15 +52,26 @@ fn main() -> ! { // // 1. What is the output in the `openocd` (Adapter Output) console? // -// ** your answer here ** +// bare3 +// s = ABCD +// bs = [65, 66, 67, 68] +// iterate over slice +// 65,66,67,68,iterate iterate using (raw) indexing +// 65, +// 66, +// 67, +// 68, +// +// +// a = AAAA // // What is the type of `s`? // -// ** your answer here ** +// ** It is a string literal, more precise: It is a slice pointing to (&str) the string literal. ** // // What is the type of `bs`? // -// ** your answer here ** +// ** It is a byte slice. A pointer to an array and the length of that array. ** // // What is the type of `c`? // -- GitLab