diff --git a/src/lib.rs b/src/lib.rs index 9d133a0d..348e15e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -732,7 +732,7 @@ impl Build { /// This option sets the `-stdlib` flag, which is only supported by some /// compilers (clang, icc) but not by others (gcc). The library will not /// detect which compiler is used, as such it is the responsibility of the - /// caller to ensure that this option is only used in conjuction with a + /// caller to ensure that this option is only used in conjunction with a /// compiler which supports the `-stdlib` flag. /// /// A value of `None` indicates that no specific C++ standard library should @@ -1849,7 +1849,7 @@ impl Build { for flag in self.ar_flags.iter() { cmd.arg(flag); } - // If the library file already exists, add the libary name + // If the library file already exists, add the library name // as an argument to let lib.exe know we are appending the objs. if dst.exists() { cmd.arg(dst); @@ -2124,7 +2124,7 @@ impl Build { // // As the shell script calls the main clang binary, the command line limit length // on Windows is restricted to around 8k characters instead of around 32k characters. - // To remove this limit, we call the main clang binary directly and contruct the + // To remove this limit, we call the main clang binary directly and construct the // `--target=` ourselves. if host.contains("windows") && android_clang_compiler_uses_target_arg_internally(&tool.path) { @@ -2652,7 +2652,7 @@ impl Tool { } #[cfg(windows)] - /// Explictly set the `ToolFamily`, skipping name-based detection. + /// Explicitly set the `ToolFamily`, skipping name-based detection. fn with_family(path: PathBuf, family: ToolFamily) -> Self { Self { path: path, diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 40101a69..51f7df0a 100644 --- a/src/windows_registry.rs +++ b/src/windows_registry.rs @@ -129,7 +129,7 @@ pub fn find_vs_version() -> Result { )), }, _ => { - // Check for the presense of a specific registry key + // Check for the presence of a specific registry key // that indicates visual studio is installed. if impl_::has_msbuild_version("16.0") { Ok(VsVers::Vs16) @@ -676,7 +676,7 @@ mod impl_ { // Interestingly there are several subdirectories, `win7` `win8` and // `winv6.3`. Vcvars seems to only care about `winv6.3` though, so the same - // applies to us. Note that if we were targetting kernel mode drivers + // applies to us. Note that if we were targeting kernel mode drivers // instead of user mode applications, we would care. fn get_sdk81_dir() -> Option { let key = r"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1";