chore: fix some typos

Signed-off-by: peicuiping <ezc5@sina.cn>
This commit is contained in:
peicuiping 2024-12-31 15:11:18 +08:00
parent 80f5a81df9
commit 09541c263e
4 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@
/// }
/// ```
///
/// But this shoudln't produce a warning:
/// But this shouldn't produce a warning:
/// ```rust,no_run
/// # extern crate pub_trait;
/// # use pub_trait::Trait;

View File

@ -6,7 +6,7 @@ fn func(func_arg: &mut V) {
|| {
// Declaring `x` separately instead of using
// a destructuring binding like `let V(x) = ...`
// becaue only `V(x) = ...` triggers the ICE
// because only `V(x) = ...` triggers the ICE
let x;
V(x) = func_arg; //~ ERROR: mismatched types
func_arg.0 = 0;

View File

@ -6,7 +6,7 @@
// to process this `'r` region bound. In particular, to be WF, the
// region bound must meet the requirements of the trait, and hence we
// got `for<'r> { 'r: 'static }`. This would ICE because the `Binder`
// constructor we were using was assering that no higher-ranked
// constructor we were using was asserting that no higher-ranked
// regions were involved (because the WF code is supposed to skip
// those). The error (if debug-asserions were disabled) came because
// we obviously cannot prove that `'r: 'static` for any region `'r`.

View File

@ -17,7 +17,7 @@
// `__rust_{begin,end}_short_backtrace` markers, which only appear in full
// backtraces. The rest of the backtrace is filtered out.
//
// Ignored on msvc becaue the `__rust_{begin,end}_short_backtrace` symbols
// Ignored on msvc because the `__rust_{begin,end}_short_backtrace` symbols
// aren't reliable.
fn main() { missing_ident; }