Skip to content

Commit be634d6

Browse files
committed
Fix typos discovered by codespell
Signed-off-by: Christian Clauss <[email protected]>
1 parent f048610 commit be634d6

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ clean-rust:
7474

7575
# TESTING
7676
# Some tests cannot run with other tests, they are marked as ignored so that cargo test works
77-
# there may be tests that we really want to ignore so we cant just use --ignored and we have to
77+
# there may be tests that we really want to ignore so we can't just use --ignored and we have to
7878
# Specify the test name of the ignored tests that we want to run
7979
test-rust target=default-target features="": (test-rust-int "rust" target features) (test-rust-int "c" target features) (test-seccomp target)
8080
# unit tests

proposals/NNNN-hip-template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
This section is incredibly important for producing high-quality, user-focused
2828
documentation such as release notes or a development roadmap. It should be
2929
possible to collect this information before implementation begins, in order to
30-
avoid requiring implementors to split their attention between writing release
30+
avoid requiring implementers to split their attention between writing release
3131
notes and implementing the feature itself. HIP editors should help to ensure
3232
that the tone and content of the `Summary` section is useful for a wide audience.
3333

src/hyperlight_host/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub enum HyperlightError {
5555
BoundsCheckFailed(u64, usize),
5656

5757
/// Checked Add Overflow
58-
#[error("Couldnt add offset to base address. Offset: {0}, Base Address: {1}")]
58+
#[error("Couldn't add offset to base address. Offset: {0}, Base Address: {1}")]
5959
CheckedAddOverflow(u64, u64),
6060

6161
/// Cross beam channel receive error

src/hyperlight_host/src/func/call_ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl SingleUseGuestCallContext {
120120
/// `args`, and expect the return value have the same type as
121121
/// `func_ret_type`.
122122
///
123-
/// Once the call is complete, the 'SingleUseSandbox' will no longer be useable and a new one will need to be created.
123+
/// Once the call is complete, the 'SingleUseSandbox' will no longer be usable and a new one will need to be created.
124124
///
125125
/// Rather than call this method directly, consider using the `call_guest_function_by_name` method on the `SingleUseSandbox`
126126

src/hyperlight_host/src/func/guest_dispatch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ mod tests {
386386

387387
fn terminate_vcpu_after_1000ms() -> Result<()> {
388388
// This test relies upon a Hypervisor being present so for now
389-
// we will skip it if there isnt one.
389+
// we will skip it if there isn't one.
390390
if !is_hypervisor_present() {
391391
println!("Skipping terminate_vcpu_after_1000ms because no hypervisor is present");
392392
return Ok(());
@@ -435,7 +435,7 @@ mod tests {
435435
#[test]
436436
fn test_terminate_vcpu_calling_host_spinning_cpu() {
437437
// This test relies upon a Hypervisor being present so for now
438-
// we will skip it if there isnt one.
438+
// we will skip it if there isn't one.
439439
if !is_hypervisor_present() {
440440
println!("Skipping test_call_guest_function_by_name because no hypervisor is present");
441441
return;

src/hyperlight_host/src/hypervisor/windows_hypervisor_platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl VMPartition {
9999
let whvmapgparange2_func = unsafe {
100100
match try_load_whv_map_gpa_range2() {
101101
Ok(func) => func,
102-
Err(e) => return Err(new_error!("Cant find API: {}", e)),
102+
Err(e) => return Err(new_error!("Can't find API: {}", e)),
103103
}
104104
};
105105

src/hyperlight_host/src/mem/pe/pe_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ mod tests {
360360
load_address: 5368709120,
361361
num_relocations: (900..1200).collect(),
362362
// range of possible # of relocations
363-
// (hardware dependant)
363+
// (hardware dependent)
364364
}
365365
} else {
366366
PEFileTest {

src/hyperlight_host/src/sandbox/run_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
use tracing::{instrument, Span};
1818

1919
/// Configuration options for setting up a new `UninitializedSandbox` and
20-
/// subsequent inititialized sandboxes, including `MultiUseSandbox` and
20+
/// subsequent initialized sandboxes, including `MultiUseSandbox` and
2121
/// `SingleUseSandbox`.
2222
///
2323
/// A `SandboxRunOptions` instance must be created with either in-process

0 commit comments

Comments
 (0)