From a04940318f24c755e2bc90e249ca467b076bd5af Mon Sep 17 00:00:00 2001
From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se>
Date: Thu, 21 Feb 2019 15:23:56 +0100
Subject: [PATCH] bare3_1

---
 examples/bare3.rs | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/examples/bare3.rs b/examples/bare3.rs
index a52a2f5..33f02ea 100644
--- a/examples/bare3.rs
+++ b/examples/bare3.rs
@@ -52,27 +52,40 @@ 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 **
+//    ** str **
 //
 //    What is the type of `bs`?
 //
-//    ** your answer here **
+//    ** [u8] byte slice**
 //
 //    What is the type of `c`?
 //
-//    ** your answer here **
+//    ** u8 byte **
 //
 //    What is the type of `a`?
 //
-//    ** your answer here **
+//    ** array **
 //
 //    What is the type of `i`?
 //
-//    ** your answer here **
+//    ** usize **
 //
 //    Commit your answers (bare3_1)
 //
-- 
GitLab