Rollup merge of #134973 - ericlehong:fix-typo, r=GuillaumeGomez
Fix typos This PR fixes typos errors in comments and docs. Thank you very much.
This commit is contained in:
commit
92f56fc150
6 changed files with 7 additions and 7 deletions
|
@ -91,7 +91,7 @@ impl<'a, I: Iterator<Item = SpannedEvent<'a>>> Iterator for Footnotes<'a, I> {
|
||||||
Some(e) => return Some(e),
|
Some(e) => return Some(e),
|
||||||
None => {
|
None => {
|
||||||
if !self.footnotes.is_empty() {
|
if !self.footnotes.is_empty() {
|
||||||
// After all the markdown is emmited, emit an <hr> then all the footnotes
|
// After all the markdown is emitted, emit an <hr> then all the footnotes
|
||||||
// in a list.
|
// in a list.
|
||||||
let defs: Vec<_> = self.footnotes.drain(..).map(|(_, x)| x).collect();
|
let defs: Vec<_> = self.footnotes.drain(..).map(|(_, x)| x).collect();
|
||||||
self.existing_footnotes.fetch_add(defs.len(), Ordering::Relaxed);
|
self.existing_footnotes.fetch_add(defs.len(), Ordering::Relaxed);
|
||||||
|
|
|
@ -27,7 +27,7 @@ struct Offset {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<F> SortedTemplate<F> {
|
impl<F> SortedTemplate<F> {
|
||||||
/// Generate this template from arbitary text.
|
/// Generate this template from arbitrary text.
|
||||||
/// Will insert wherever the substring `delimiter` can be found.
|
/// Will insert wherever the substring `delimiter` can be found.
|
||||||
/// Errors if it does not appear exactly once.
|
/// Errors if it does not appear exactly once.
|
||||||
pub(crate) fn from_template(template: &str, delimiter: &str) -> Result<Self, Error> {
|
pub(crate) fn from_template(template: &str, delimiter: &str) -> Result<Self, Error> {
|
||||||
|
|
|
@ -2848,7 +2848,7 @@ class DocSearch {
|
||||||
* - Limit checks that Ty matches Vec<Ty>,
|
* - Limit checks that Ty matches Vec<Ty>,
|
||||||
* but not Vec<ParamEnvAnd<WithInfcx<ConstTy<Interner<Ty=Ty>>>>>
|
* but not Vec<ParamEnvAnd<WithInfcx<ConstTy<Interner<Ty=Ty>>>>>
|
||||||
*
|
*
|
||||||
* @return {[FunctionType]|null} - Returns highlighed results if a match, null otherwise.
|
* @return {[FunctionType]|null} - Returns highlighted results if a match, null otherwise.
|
||||||
*/
|
*/
|
||||||
function unifyFunctionTypes(
|
function unifyFunctionTypes(
|
||||||
fnTypesIn,
|
fnTypesIn,
|
||||||
|
@ -3148,7 +3148,7 @@ class DocSearch {
|
||||||
* - Limit checks that Ty matches Vec<Ty>,
|
* - Limit checks that Ty matches Vec<Ty>,
|
||||||
* but not Vec<ParamEnvAnd<WithInfcx<ConstTy<Interner<Ty=Ty>>>>>
|
* but not Vec<ParamEnvAnd<WithInfcx<ConstTy<Interner<Ty=Ty>>>>>
|
||||||
*
|
*
|
||||||
* @return {[FunctionType]|null} - Returns highlighed results if a match, null otherwise.
|
* @return {[FunctionType]|null} - Returns highlighted results if a match, null otherwise.
|
||||||
*/
|
*/
|
||||||
function unifyGenericTypes(
|
function unifyGenericTypes(
|
||||||
fnTypesIn,
|
fnTypesIn,
|
||||||
|
|
|
@ -584,7 +584,7 @@ install_components() {
|
||||||
# HACK: Try to support overriding --docdir. Paths with the form
|
# HACK: Try to support overriding --docdir. Paths with the form
|
||||||
# "share/doc/$product/" can be redirected to a single --docdir
|
# "share/doc/$product/" can be redirected to a single --docdir
|
||||||
# path. If the following detects that --docdir has been specified
|
# path. If the following detects that --docdir has been specified
|
||||||
# then it will replace everything preceeding the "$product" path
|
# then it will replace everything preceding the "$product" path
|
||||||
# component. The problem here is that the combined rust installer
|
# component. The problem here is that the combined rust installer
|
||||||
# contains two "products": rust and cargo; so the contents of those
|
# contains two "products": rust and cargo; so the contents of those
|
||||||
# directories will both be dumped into the same directory; and the
|
# directories will both be dumped into the same directory; and the
|
||||||
|
|
|
@ -214,7 +214,7 @@ const EXCEPTIONS_BOOTSTRAP: ExceptionList = &[
|
||||||
];
|
];
|
||||||
|
|
||||||
const EXCEPTIONS_UEFI_QEMU_TEST: ExceptionList = &[
|
const EXCEPTIONS_UEFI_QEMU_TEST: ExceptionList = &[
|
||||||
("r-efi", "MIT OR Apache-2.0 OR LGPL-2.1-or-later"), // LGPL is not acceptible, but we use it under MIT OR Apache-2.0
|
("r-efi", "MIT OR Apache-2.0 OR LGPL-2.1-or-later"), // LGPL is not acceptable, but we use it under MIT OR Apache-2.0
|
||||||
];
|
];
|
||||||
|
|
||||||
/// Placeholder for non-standard license file.
|
/// Placeholder for non-standard license file.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! Optional checks for file types other than Rust source
|
//! Optional checks for file types other than Rust source
|
||||||
//!
|
//!
|
||||||
//! Handles python tool version managment via a virtual environment in
|
//! Handles python tool version management via a virtual environment in
|
||||||
//! `build/venv`.
|
//! `build/venv`.
|
||||||
//!
|
//!
|
||||||
//! # Functional outline
|
//! # Functional outline
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue