diff --git a/examples/bare3.rs b/examples/bare3.rs index 665b4da687d3ca0285abdf1ae5268b9ba0a4c340..591558365440e5462c95a501a57f202d456557ad 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -55,27 +55,40 @@ fn main() -> ! { // 1. What is the output in the `openocd` (Adapter Output) console? // // ** your answer here ** -// +// 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 ** -// +// &str +// // What is the type of `bs`? // // ** your answer here ** -// +// &[u8] + // What is the type of `c`? -// // ** your answer here ** +// &u8 // // What is the type of `a`? -// +// // ** your answer here ** -// +// array [u8;4] +// // What is the type of `i`? // // ** your answer here ** -// +// usize // Commit your answers (bare3_1) // // 2. Make types of `s`, `bs`, `c`, `a`, `i` explicit.