mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Fix some typos of "similarity"
This commit is contained in:
@@ -208,7 +208,7 @@ pub fn try_alloc_from_iter<E>(
|
||||
&self,
|
||||
iter: impl IntoIterator<Item = Result<T, E>>,
|
||||
) -> Result<&mut [T], E> {
|
||||
// Despite the similarlty with `DroplessArena`, we cannot reuse their fast case. The reason
|
||||
// Despite the similarity with `DroplessArena`, we cannot reuse their fast case. The reason
|
||||
// is subtle: these arenas are reentrant. In other words, `iter` may very well be holding a
|
||||
// reference to `self` and adding elements to the arena during iteration.
|
||||
//
|
||||
@@ -584,7 +584,7 @@ pub fn try_alloc_from_iter<T, E>(
|
||||
&self,
|
||||
iter: impl IntoIterator<Item = Result<T, E>>,
|
||||
) -> Result<&mut [T], E> {
|
||||
// Despite the similarlty with `alloc_from_iter`, we cannot reuse their fast case, as we
|
||||
// Despite the similarity with `alloc_from_iter`, we cannot reuse their fast case, as we
|
||||
// cannot know the minimum length of the iterator in this case.
|
||||
assert!(size_of::<T>() != 0);
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ unstalled = "unstalled" # short for un-stalled
|
||||
#
|
||||
# tidy-alphabetical-start
|
||||
definitinon = "definition"
|
||||
similarlty = "similarity"
|
||||
# tidy-alphabetical-end
|
||||
|
||||
[default.extend-identifiers]
|
||||
|
||||
Reference in New Issue
Block a user