From c45dc28a6c4237037449f81544d62946e4672b1b Mon Sep 17 00:00:00 2001 From: Per Lindgren <per.lindgren@ltu.se> Date: Mon, 17 Feb 2020 23:34:41 +0100 Subject: [PATCH] bare3 polish --- examples/bare3.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/bare3.rs b/examples/bare3.rs index dc3d3fa..0c0c0ae 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -3,7 +3,7 @@ //! String types in Rust //! //! What it covers: -//! - Types, str, arrays ([u8;uszie]), slices (&[u8]) +//! - Types, str, arrays ([u8; usize]), slices (&[u8]) //! - Iteration, copy //! - Semihosting (tracing) @@ -90,7 +90,8 @@ fn main() -> ! { // // Commit your answers (bare3_3) // -// 4. Alter the program so that the data from `bs` is copied byte by byte into `a`. +// 4. Alter the program so that the data from `bs` is copied byte +// by byte into `a` using a loop and raw indexing. // // Test that it works as intended. // -- GitLab