@@ -1016,7 +1016,7 @@ impl Build {
1016
1016
1017
1017
/// Run the compiler, generating the file `output`
1018
1018
///
1019
- /// This will return a result instead of panicing ; see compile() for the complete description.
1019
+ /// This will return a result instead of panicking ; see compile() for the complete description.
1020
1020
pub fn try_compile ( & self , output : & str ) -> Result < ( ) , Error > {
1021
1021
let mut output_components = Path :: new ( output) . components ( ) ;
1022
1022
match ( output_components. next ( ) , output_components. next ( ) ) {
@@ -1201,7 +1201,7 @@ impl Build {
1201
1201
/// Run the compiler, generating intermediate files, but without linking
1202
1202
/// them into an archive file.
1203
1203
///
1204
- /// This will return a result instead of panicing ; see `compile_intermediates()` for the complete description.
1204
+ /// This will return a result instead of panicking ; see `compile_intermediates()` for the complete description.
1205
1205
pub fn try_compile_intermediates ( & self ) -> Result < Vec < PathBuf > , Error > {
1206
1206
let dst = self . get_out_dir ( ) ?;
1207
1207
let objects = objects_from_files ( & self . files , & dst) ?;
@@ -1436,7 +1436,7 @@ impl Build {
1436
1436
Ok ( ( cmd, name) )
1437
1437
}
1438
1438
1439
- /// This will return a result instead of panicing ; see expand() for the complete description.
1439
+ /// This will return a result instead of panicking ; see expand() for the complete description.
1440
1440
pub fn try_expand ( & self ) -> Result < Vec < u8 > , Error > {
1441
1441
let compiler = self . try_get_compiler ( ) ?;
1442
1442
let mut cmd = compiler. to_command ( ) ;
@@ -1523,7 +1523,7 @@ impl Build {
1523
1523
1524
1524
/// Get the compiler that's in use for this configuration.
1525
1525
///
1526
- /// This will return a result instead of panicing ; see
1526
+ /// This will return a result instead of panicking ; see
1527
1527
/// [`get_compiler()`](Self::get_compiler) for the complete description.
1528
1528
pub fn try_get_compiler ( & self ) -> Result < Tool , Error > {
1529
1529
let opt_level = self . get_opt_level ( ) ?;
@@ -2778,7 +2778,7 @@ impl Build {
2778
2778
2779
2779
/// Get the archiver that's in use for this configuration.
2780
2780
///
2781
- /// This will return a result instead of panicing ;
2781
+ /// This will return a result instead of panicking ;
2782
2782
/// see [`Self::get_archiver`] for the complete description.
2783
2783
pub fn try_get_archiver ( & self ) -> Result < Command , Error > {
2784
2784
Ok ( self . try_get_archiver_and_flags ( ) ?. 0 )
@@ -2829,7 +2829,7 @@ impl Build {
2829
2829
2830
2830
/// Get the ranlib that's in use for this configuration.
2831
2831
///
2832
- /// This will return a result instead of panicing ;
2832
+ /// This will return a result instead of panicking ;
2833
2833
/// see [`Self::get_ranlib`] for the complete description.
2834
2834
pub fn try_get_ranlib ( & self ) -> Result < Command , Error > {
2835
2835
let mut cmd = self . get_base_ranlib ( ) ?;
@@ -2873,7 +2873,7 @@ impl Build {
2873
2873
// Formally speaking one should be able to use this approach,
2874
2874
// parsing -print-search-dirs output, to cover all clang targets,
2875
2875
// including Android SDKs and other cross-compilation scenarios...
2876
- // And even extend it to gcc targets by seaching for "ar" instead
2876
+ // And even extend it to gcc targets by searching for "ar" instead
2877
2877
// of "llvm-ar"...
2878
2878
let compiler = self . get_base_compiler ( ) . ok ( ) ?;
2879
2879
if compiler. family == ToolFamily :: Clang {
@@ -2944,7 +2944,7 @@ impl Build {
2944
2944
Some ( p) => {
2945
2945
// GCC uses $target-gcc-ar, whereas binutils uses $target-ar -- try both.
2946
2946
// Prefer -ar if it exists, as builds of `-gcc-ar` have been observed to be
2947
- // outright broken (such as when targetting freebsd with `--disable-lto`
2947
+ // outright broken (such as when targeting freebsd with `--disable-lto`
2948
2948
// toolchain where the archiver attempts to load the LTO plugin anyway but
2949
2949
// fails to find one).
2950
2950
//
0 commit comments