Skip to content

Commit 1f50999

Browse files
authored
fix some typos (#604)
1 parent ba48733 commit 1f50999

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ impl Build {
732732
/// This option sets the `-stdlib` flag, which is only supported by some
733733
/// compilers (clang, icc) but not by others (gcc). The library will not
734734
/// detect which compiler is used, as such it is the responsibility of the
735-
/// caller to ensure that this option is only used in conjuction with a
735+
/// caller to ensure that this option is only used in conjunction with a
736736
/// compiler which supports the `-stdlib` flag.
737737
///
738738
/// A value of `None` indicates that no specific C++ standard library should
@@ -1849,7 +1849,7 @@ impl Build {
18491849
for flag in self.ar_flags.iter() {
18501850
cmd.arg(flag);
18511851
}
1852-
// If the library file already exists, add the libary name
1852+
// If the library file already exists, add the library name
18531853
// as an argument to let lib.exe know we are appending the objs.
18541854
if dst.exists() {
18551855
cmd.arg(dst);
@@ -2124,7 +2124,7 @@ impl Build {
21242124
//
21252125
// As the shell script calls the main clang binary, the command line limit length
21262126
// on Windows is restricted to around 8k characters instead of around 32k characters.
2127-
// To remove this limit, we call the main clang binary directly and contruct the
2127+
// To remove this limit, we call the main clang binary directly and construct the
21282128
// `--target=` ourselves.
21292129
if host.contains("windows") && android_clang_compiler_uses_target_arg_internally(&tool.path)
21302130
{
@@ -2652,7 +2652,7 @@ impl Tool {
26522652
}
26532653

26542654
#[cfg(windows)]
2655-
/// Explictly set the `ToolFamily`, skipping name-based detection.
2655+
/// Explicitly set the `ToolFamily`, skipping name-based detection.
26562656
fn with_family(path: PathBuf, family: ToolFamily) -> Self {
26572657
Self {
26582658
path: path,

src/windows_registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn find_vs_version() -> Result<VsVers, String> {
129129
)),
130130
},
131131
_ => {
132-
// Check for the presense of a specific registry key
132+
// Check for the presence of a specific registry key
133133
// that indicates visual studio is installed.
134134
if impl_::has_msbuild_version("16.0") {
135135
Ok(VsVers::Vs16)
@@ -676,7 +676,7 @@ mod impl_ {
676676

677677
// Interestingly there are several subdirectories, `win7` `win8` and
678678
// `winv6.3`. Vcvars seems to only care about `winv6.3` though, so the same
679-
// applies to us. Note that if we were targetting kernel mode drivers
679+
// applies to us. Note that if we were targeting kernel mode drivers
680680
// instead of user mode applications, we would care.
681681
fn get_sdk81_dir() -> Option<PathBuf> {
682682
let key = r"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1";

0 commit comments

Comments
 (0)