mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
fix a lil typo
sturcts -> structs
This commit is contained in:
@@ -165,7 +165,7 @@ pub struct Color {
|
||||
}
|
||||
```
|
||||
|
||||
By marking the sturcts and their fields as `pub`, we make them accessible from the parent `kernel` module.
|
||||
By marking the structs and their fields as `pub`, we make them accessible from the parent `kernel` module.
|
||||
We use the `#[derive]` attribute to implement the [`Debug`], [`Clone`], [`Copy`], [`PartialEq`], and [`Eq`] traits of Rust's core library.
|
||||
These traits allow us to duplicate, compare, and print the structs.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user