Skip to content

Commit 7ee3e39

Browse files
committedFeb 10, 2018
fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}}
1 parent 39abcc0 commit 7ee3e39

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed
 

‎src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl<'a> Builder<'a> {
570570
// build scripts in that situation.
571571
//
572572
// If LLVM support is disabled we need to use the snapshot compiler to compile
573-
// build scripts, as the new compiler doesnt support executables.
573+
// build scripts, as the new compiler doesn't support executables.
574574
if mode == Mode::Libstd || !self.build.config.llvm_enabled {
575575
cargo.env("RUSTC_SNAPSHOT", &self.initial_rustc)
576576
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_snapshot_libdir());

‎src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ impl Build {
666666
}
667667
}
668668

669-
/// Returns the path to the linker for the given target if it needs to be overriden.
669+
/// Returns the path to the linker for the given target if it needs to be overridden.
670670
fn linker(&self, target: Interned<String>) -> Option<&Path> {
671671
if let Some(linker) = self.config.target_config.get(&target)
672672
.and_then(|c| c.linker.as_ref()) {

‎src/bootstrap/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ impl Step for Compiletest {
902902
}
903903
}
904904
if suite == "run-make" && !build.config.llvm_enabled {
905-
println!("Ignoring run-make test suite as they generally dont work without LLVM");
905+
println!("Ignoring run-make test suite as they generally don't work without LLVM");
906906
return;
907907
}
908908

‎src/ci/docker/dist-x86_64-netbsd/build-netbsd-toolchain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cd usr/src
5454
# The options, in order, do the following
5555
# * this is an unprivileged build
5656
# * output to a predictable location
57-
# * disable various uneeded stuff
57+
# * disable various unneeded stuff
5858
MKUNPRIVED=yes TOOLDIR=/x-tools/x86_64-unknown-netbsd \
5959
MKSHARE=no MKDOC=no MKHTML=no MKINFO=no MKKMOD=no MKLINT=no MKMAN=no MKNLS=no MKPROFILE=no \
6060
hide_output ./build.sh -j10 -m amd64 tools

‎src/etc/installer/msi/rust.wxs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!-- Upgrade code should be different for each platform -->
1919
<?if $(sys.BUILDARCH)="x64" ?>
2020
<?if $(env.CFG_ABI)="GNU" ?>
21-
<!-- UpgradeCode shoud stay the same for all MSI versions in channel -->
21+
<!-- UpgradeCode should stay the same for all MSI versions in channel -->
2222
<?if $(env.CFG_CHANNEL)="stable" ?>
2323
<?define UpgradeCode="B440B077-F8D1-4730-8E1D-D6D37702B4CE" ?>
2424
<?elseif $(env.CFG_CHANNEL)="beta" ?>
@@ -129,7 +129,7 @@
129129

130130
<!-- Path of cmd.exe for the shortcut -->
131131
<Property Id="SHORTCUTTARGET" Value="%windir%\System32\cmd.exe" />
132-
<!-- Microsoft Installer will resolve any Enviroment Variables in the working directory at install time -->
132+
<!-- Microsoft Installer will resolve any Environment Variables in the working directory at install time -->
133133
<Property Id="SHORTCUTWKDIR" Value="%SystemDrive%\" />
134134

135135
<InstallUISequence>

‎src/etc/platform-intrinsics/generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def parse_args():
591591
The X86 architecture is specified as multiple files (for the different
592592
instruction sets that x86 supports). To generate the compiler
593593
definitions one needs to pass the script a "platform information file"
594-
(with the -i flag) next to the files of the different intruction sets.
594+
(with the -i flag) next to the files of the different instruction sets.
595595
For example, to generate the X86 compiler-definitions for SSE4.2, just:
596596
597597
python generator.py --format compiler-defs -i x86/info.json sse42.json

‎src/etc/test-float-parse/runtests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
(as a fraction, using the ``fractions`` module).
4242
4343
Given an input string and the corresponding float computed via Rust, simply
44-
decode the float into f * 2^k (for intergers f, k) and the ULP.
44+
decode the float into f * 2^k (for integers f, k) and the ULP.
4545
We can now easily compute the error and check if it is within 0.5 ULP as it
4646
should be. Zero and infinites are handled similarly:
4747

‎src/libbacktrace/ltmain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ func_mkdir_p ()
487487
# While some portion of DIR does not yet exist...
488488
while test ! -d "$my_directory_path"; do
489489
# ...make a list in topmost first order. Use a colon delimited
490-
# list incase some portion of path contains whitespace.
490+
# list in case some portion of path contains whitespace.
491491
my_dir_list="$my_directory_path:$my_dir_list"
492492

493493
# If the last portion added has no slash in it, the list is done

‎src/libbacktrace/macho.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ macho_get_commands (struct backtrace_state *state, int descriptor,
327327
goto end;
328328
file_header_view_valid = 1;
329329

330-
// The endianess of the slice may be different than the fat image
330+
// The endianness of the slice may be different than the fat image
331331
switch (*(uint32_t *) file_header_view.data)
332332
{
333333
case MH_MAGIC:

‎src/libcore/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ macro_rules! debug_assert_ne {
327327
/// }
328328
/// }
329329
///
330-
/// // The prefered method of quick returning Errors
330+
/// // The preferred method of quick returning Errors
331331
/// fn write_to_file_question() -> Result<(), MyError> {
332332
/// let mut file = File::create("my_best_friends.txt")?;
333333
/// file.write_all(b"This is a list of my best friends.")?;

‎src/libfmt_macros/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub struct FormatSpec<'a> {
7373
/// Enum describing where an argument for a format can be located.
7474
#[derive(Copy, Clone, PartialEq)]
7575
pub enum Position<'a> {
76-
/// The arugment is implied to be located at an index
76+
/// The argument is implied to be located at an index
7777
ArgumentImplicitlyIs(usize),
7878
/// The argument is located at a specific index given in the format
7979
ArgumentIs(usize),

0 commit comments

Comments
 (0)