Skip to content

Commit c8e7355

Browse files
committed
fix typos, add excludes
Signed-off-by: Simon Davies <[email protected]>
1 parent 70d409c commit c8e7355

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ fn ensure_surrogate_process_exe() -> Result<()> {
335335

336336
if embedded_file_sha != file_on_disk_sha {
337337
println!(
338-
"sha of embedded surrorate '{}' does not match sha of file on disk '{}' - deleting surrogate binary at {}",
338+
"sha of embedded surrogate '{}' does not match sha of file on disk '{}' - deleting surrogate binary at {}",
339339
embedded_file_sha,
340340
file_on_disk_sha,
341341
&surrogate_process_path.display()

src/hyperlight_host/src/mem/mgr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ impl SandboxMemoryManager<HostSharedMemory> {
584584
// the guest manipulating this memory location because the only
585585
// addresses that are valid are in its own address space.
586586
//
587-
// When executing in-process, maniulating this pointer could cause the
587+
// When executing in-process, manipulating this pointer could cause the
588588
// host to execute arbitrary functions.
589589
let guest_ptr = GuestPtr::try_from(RawPtr::from(guest_dispatch_function_ptr))?;
590590
guest_ptr.absolute()

src/hyperlight_host/src/mem/shared_mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ unsafe impl Send for GuestSharedMemory {}
229229
/// sadly, mostly un-adopted for C++23, although that does not concern
230230
/// us), the paper did not actually redefine volatile accesses or data
231231
/// races to prevent volatile accesses from racing with other accesses
232-
/// and causing undefined behaviour. P1382R1 [5] would have amendend
232+
/// and causing undefined behaviour. P1382R1 [5] would have amended
233233
/// the wording of the data race definition to specifically exclude
234234
/// volatile, but, unfortunately, despite receiving a
235235
/// generally-positive reception at its first WG21 meeting more than
@@ -257,7 +257,7 @@ unsafe impl Send for GuestSharedMemory {}
257257
/// In short, none of the Rust-level operations available to us do the
258258
/// right thing, at the Rust spec level or the LLVM spec level. Our
259259
/// major remaining options are therefore:
260-
/// - Choose one of the options that is avaiblale to us, and accept
260+
/// - Choose one of the options that is available to us, and accept
261261
/// that we are doing something unsound according to the spec, but
262262
/// hope that no reasonable compiler could possibly notice.
263263
/// - Use inline assembly per architecture, for which we would only

src/hyperlight_host/src/sandbox/initialized_multi_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl MultiUseSandbox {
121121
/// // original `sbox` variable.
122122
/// let mut ctx = sbox.new_call_context();
123123
///
124-
/// // Do a guest call with the context. Assues that the loaded binary
124+
/// // Do a guest call with the context. Assumes that the loaded binary
125125
/// // ("some_guest_binary") has a function therein called "SomeGuestFunc"
126126
/// // that takes a single integer argument and returns an integer.
127127
/// match ctx.call(

typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ extend-ignore-identifiers-re = ["Fo"]
33

44
[files]
55
extend-exclude = ["**/*.patch", "src/hyperlight_guest/third_party/**/*", "NOTICE.txt"]
6+
7+
[default.extend-words]
8+
# typ is used for field name as type is a reserved keyword
9+
typ="typ"

0 commit comments

Comments
 (0)