Skip to content

Commit 3cd7e17

Browse files
committed
correct typo
1 parent 24a3b10 commit 3cd7e17

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/builder/error.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub enum BuildKernelError {
1818
Io {
1919
/// Desciption of the failed I/O operation
2020
message: &'static str,
21-
/// The I/O error that occured
21+
/// The I/O error that occurred
2222
error: io::Error,
2323
},
2424

@@ -49,7 +49,7 @@ pub enum BuildKernelError {
4949
#[non_exhaustive]
5050
pub enum CreateBootimageError {
5151
/// Failed to build the bootloader.
52-
#[error("An error occured while trying to build the bootloader: {0}")]
52+
#[error("An error occurred while trying to build the bootloader: {0}")]
5353
Bootloader(#[from] BootloaderError),
5454

5555
/// Error while running `cargo metadata`
@@ -64,15 +64,15 @@ pub enum CreateBootimageError {
6464
},
6565

6666
/// Disk image creation failed
67-
#[error("An error occured while trying to create the disk image: {0}")]
67+
#[error("An error occurred while trying to create the disk image: {0}")]
6868
DiskImage(#[from] DiskImageError),
6969

7070
/// An unexpected I/O error occurred
7171
#[error("I/O error: {message}:\n{error}")]
7272
Io {
7373
/// Desciption of the failed I/O operation
7474
message: &'static str,
75-
/// The I/O error that occured
75+
/// The I/O error that occurred
7676
error: io::Error,
7777
},
7878

@@ -145,7 +145,7 @@ pub enum DiskImageError {
145145
Io {
146146
/// Desciption of the failed I/O operation
147147
message: &'static str,
148-
/// The I/O error that occured
148+
/// The I/O error that occurred
149149
error: io::Error,
150150
},
151151
}

src/run.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ pub enum RunError {
101101
#[error("Failed to read QEMU exit code")]
102102
NoQemuExitCode,
103103

104-
/// An I/O error occured
105-
#[error("{context}: An I/O error occured: {error}")]
104+
/// An I/O error occurred
105+
#[error("{context}: An I/O error occurred: {error}")]
106106
Io {
107107
/// The operation that caused the I/O error.
108108
context: IoErrorContext,
109-
/// The I/O error that occured.
109+
/// The I/O error that occurred.
110110
error: io::Error,
111111
},
112112
}
113113

114-
/// An I/O error occured while trying to run the disk image.
114+
/// An I/O error occurred while trying to run the disk image.
115115
#[derive(Debug, Error)]
116116
pub enum IoErrorContext {
117117
/// QEMU command for non-test failed

0 commit comments

Comments
 (0)