From 4e416dd89ea74a7502640ce10358f90195bec593 Mon Sep 17 00:00:00 2001 From: Per Lindgren <per.lindgren@ltu.se> Date: Tue, 14 Jan 2020 11:07:24 +0100 Subject: [PATCH] example --- examples/f401_minimal.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/f401_minimal.rs b/examples/f401_minimal.rs index 679771a..ee90da6 100644 --- a/examples/f401_minimal.rs +++ b/examples/f401_minimal.rs @@ -46,8 +46,8 @@ fn main() -> ! { // Breakpoint 1, main () at examples/f401_minimal.rs:14 // 14 #[entry] // -// `main` is our "entry" point for the user applicaiton. -// It can be named anything by needs to annoted by #[entry]. +// `main` is our "entry" point for the user application. +// It can be named anything by needs to annotated by #[entry]. // At this point global variables have been initiated. // // The `openocd.gdb` script defines the startup procedure, where we have set @@ -95,19 +95,19 @@ fn main() -> ! { // // Some basic Rust. // Use https://www.rust-lang.org/learn and in particular https://doc.rust-lang.org/book/. -// There is even a book on embeddded Rust available: +// There is even a book on embedded Rust available: // https://rust-embedded.github.io/book/, it covers much more than we need here. // // Figure out a way to print the numbers 0..10 using a for loop. // -// Figure out a way to store the numbers in 0..10 in a stacic (global) array using a loop. +// Figure out a way to store the numbers in 0..10 in a static (global) array using a loop. // // Print the resulting array (using a single println invocation, not a loop). // // (You may prototype the code directly on https://play.rust-lang.org/, and when it works -// backport that into the minimal example, and chack that it works the same) +// back-port that into the minimal example, and check that it works the same) // -// These two small excersises should get you warmed up. +// These two small exercises should get you warmed up. // // Some reflections: // Why is does dealing with static variables require `unsafe`? -- GitLab