]> git.lizzy.rs Git - rust.git/commitdiff
Fix spelling typo
authorDavid Cook <divergentdave@gmail.com>
Mon, 6 Apr 2020 01:55:39 +0000 (20:55 -0500)
committerDavid Cook <divergentdave@gmail.com>
Mon, 6 Apr 2020 01:55:39 +0000 (20:55 -0500)
src/shims/foreign_items/posix/linux.rs
src/shims/foreign_items/posix/macos.rs
src/shims/foreign_items/windows.rs

index 286bd5798b049c17a6ae347663057697dd2069f1..16c6c002b69c570cfbc0ea7c6addbade74be91ff 100644 (file)
@@ -113,7 +113,7 @@ fn emulate_foreign_item_by_name(
                 this.write_scalar(Scalar::from_i32(-1), dest)?;
             }
 
-            // Incomplete shims that we "stub out" just to get pre-main initialziation code to work.
+            // Incomplete shims that we "stub out" just to get pre-main initialization code to work.
             // These shims are enabled only when the caller is in the standard library.
             "pthread_getattr_np" if this.frame().instance.to_string().starts_with("std::sys::unix::") => {
                 this.write_null(dest)?;
index 44c45d90c1987a776879f24baf23bf57ce7681d8..9810a77ffde18066e6e66304a827f6fa8ee6d790 100644 (file)
@@ -88,7 +88,7 @@ fn emulate_foreign_item_by_name(
                 this.write_scalar(stack_size, dest)?;
             }
 
-            // Incomplete shims that we "stub out" just to get pre-main initialziation code to work.
+            // Incomplete shims that we "stub out" just to get pre-main initialization code to work.
             // These shims are enabled only when the caller is in the standard library.
             "mmap" if this.frame().instance.to_string().starts_with("std::sys::unix::") => {
                 // This is a horrible hack, but since the guard page mechanism calls mmap and expects a particular return value, we just give it that value.
index 443d44fae1c3acbe04d1dfebbde94f7cb2f5f773..1d17cbcefdeec7357cc2b378d741904940088204 100644 (file)
@@ -207,7 +207,7 @@ fn emulate_foreign_item_by_name(
                 throw_unsup_format!("Miri does not support threading");
             }
 
-            // Incomplete shims that we "stub out" just to get pre-main initialziation code to work.
+            // Incomplete shims that we "stub out" just to get pre-main initialization code to work.
             // These shims are enabled only when the caller is in the standard library.
             "GetProcessHeap" if this.frame().instance.to_string().starts_with("std::sys::windows::") => {
                 // Just fake a HANDLE