Merge pull request #1270 from lachsdachs/patch-1

fix a lil typo
This commit is contained in:
Philipp Oppermann
2024-01-28 12:09:11 +01:00
committed by GitHub

View File

@@ -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. 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. These traits allow us to duplicate, compare, and print the structs.