Rollup merge of #134884 - calciumbe:patch1, r=jieyouxu
Fix typos Hello, I fix some typos in docs and comments. Thank you very much.
This commit is contained in:
commit
344a61e69b
4 changed files with 4 additions and 4 deletions
|
@ -755,7 +755,7 @@ impl<'a> Parser<'a> {
|
|||
// When there are a few keywords in the last ten elements of `self.expected_token_types`
|
||||
// and the current token is an identifier, it's probably a misspelled keyword. This handles
|
||||
// code like `async Move {}`, misspelled `if` in match guard, misspelled `else` in
|
||||
// `if`-`else` and mispelled `where` in a where clause.
|
||||
// `if`-`else` and misspelled `where` in a where clause.
|
||||
if !expected_keywords.is_empty()
|
||||
&& !curr_ident.is_used_keyword()
|
||||
&& let Some(misspelled_kw) = find_similar_kw(curr_ident, &expected_keywords)
|
||||
|
|
|
@ -420,7 +420,7 @@ impl<A: Allocator> RawVecInner<A> {
|
|||
match Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc, elem_layout) {
|
||||
Ok(this) => {
|
||||
unsafe {
|
||||
// Make it more obvious that a subsquent Vec::reserve(capacity) will not allocate.
|
||||
// Make it more obvious that a subsequent Vec::reserve(capacity) will not allocate.
|
||||
hint::assert_unchecked(!this.needs_to_grow(0, capacity, elem_layout));
|
||||
}
|
||||
this
|
||||
|
|
|
@ -136,7 +136,7 @@ pub(crate) fn set_current(thread: Thread) -> Result<(), Thread> {
|
|||
/// one thread and is guaranteed not to call the global allocator.
|
||||
#[inline]
|
||||
pub(crate) fn current_id() -> ThreadId {
|
||||
// If accessing the persistant thread ID takes multiple TLS accesses, try
|
||||
// If accessing the persistent thread ID takes multiple TLS accesses, try
|
||||
// to retrieve it from the current thread handle, which will only take one
|
||||
// TLS access.
|
||||
if !id::CHEAP {
|
||||
|
|
|
@ -65,4 +65,4 @@ Currently the `riscv64-linux-android` target requires the following architecture
|
|||
### aarch64-linux-android on Nightly compilers
|
||||
|
||||
As soon as `-Zfixed-x18` compiler flag is supplied, the [`ShadowCallStack` sanitizer](https://releases.llvm.org/7.0.1/tools/clang/docs/ShadowCallStack.html)
|
||||
instrumentation is also made avaiable by supplying the second compiler flag `-Zsanitizer=shadow-call-stack`.
|
||||
instrumentation is also made available by supplying the second compiler flag `-Zsanitizer=shadow-call-stack`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue