Fix typos “an”→“a” and a few different ones that appeared in the same search
This commit is contained in:
parent
25ebc35f97
commit
9bc0dbeb64
@ -401,7 +401,7 @@ fn rewrite_macro_inner(
|
||||
handle_vec_semi(context, shape, arg_vec, macro_name, style)
|
||||
} else {
|
||||
// If we are rewriting `vec!` macro or other special macros,
|
||||
// then we can rewrite this as an usual array literal.
|
||||
// then we can rewrite this as a usual array literal.
|
||||
// Otherwise, we must preserve the original existence of trailing comma.
|
||||
let macro_name = ¯o_name.as_str();
|
||||
let mut force_trailing_comma = if trailing_comma {
|
||||
|
@ -153,7 +153,7 @@ pub(crate) fn rewrite_string<'a>(
|
||||
wrap_str(result, fmt.config.max_width(), fmt.shape)
|
||||
}
|
||||
|
||||
/// Returns the index to the end of the URL if the split at index of the given string includes an
|
||||
/// Returns the index to the end of the URL if the split at index of the given string includes a
|
||||
/// URL or alike. Otherwise, returns `None`.
|
||||
fn detect_url(s: &[&str], index: usize) -> Option<usize> {
|
||||
let start = match s[..=index].iter().rposition(|g| is_whitespace(g)) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! The features are detected using the `detect_features` function below.
|
||||
//! This function uses the CPUID instruction to read the feature flags from the
|
||||
//! CPU and encodes them in an `usize` where each bit position represents
|
||||
//! CPU and encodes them in a `usize` where each bit position represents
|
||||
//! whether a feature is available (bit is set) or unavaiable (bit is cleared).
|
||||
//!
|
||||
//! The enum `Feature` is used to map bit positions to feature names, and the
|
||||
|
@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! The features are detected using the `detect_features` function below.
|
||||
//! This function uses the CPUID instruction to read the feature flags from the
|
||||
//! CPU and encodes them in an `usize` where each bit position represents
|
||||
//! CPU and encodes them in a `usize` where each bit position represents
|
||||
//! whether a feature is available (bit is set) or unavaiable (bit is cleared).
|
||||
//!
|
||||
//! The enum `Feature` is used to map bit positions to feature names, and the
|
||||
|
Loading…
x
Reference in New Issue
Block a user