ferrous-systems / rust-exercises

Exercises for learning Rust, by Ferrous Systems
Creative Commons Attribution Share Alike 4.0 International
127 stars 15 forks source link

Typo in radio-puzzle-1 #96

Closed jonathanpallant closed 1 month ago

jonathanpallant commented 1 month ago

This line:

https://github.com/ferrous-systems/rust-exercises/blob/dd422740c21c6d8a24534638a0483f61eee8b8e0/nrf52-code/radio-app/src/bin/radio-puzzle-1.rs#L36

should read:

let output = data[0];

Not packet[0]. It will compile, but you'll get the first byte of the reply address and not the first byte of the payload.

miguelraz commented 1 month ago

Closed by https://github.com/ferrous-systems/rust-exercises/pull/100