You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/peripherals/singletons.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ But this has a few problems. It is a mutable global variable, and in Rust, these
25
25
26
26
## How do we do this in Rust?
27
27
28
-
Instead of just making our peripheral a global variable, we might instead decide to make a struct, in this case called `PERIPHERALS`, which contains an `Option<T>` for each of our peripherals.
28
+
Instead of just making our peripheral a global variable, we might instead decide to make a structure, in this case called `PERIPHERALS`, which contains an `Option<T>` for each of our peripherals.
0 commit comments