Fix some typos of "similarity"

This commit is contained in:
Zalathar
2026-01-29 18:00:33 +11:00
parent 80b898258d
commit 21c99d3ad9
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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);
+1
View File
@@ -46,6 +46,7 @@ unstalled = "unstalled" # short for un-stalled
#
# tidy-alphabetical-start
definitinon = "definition"
similarlty = "similarity"
# tidy-alphabetical-end
[default.extend-identifiers]