Skip to content

Commit 0ff733a

Browse files
authored
typo
"similarlty" to "similarity"
1 parent 7b32c14 commit 0ff733a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_arena/src

1 file changed

+1
-1
lines changed

compiler/rustc_arena/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<T> TypedArena<T> {
201201
/// storing the elements in the arena.
202202
#[inline]
203203
pub fn alloc_from_iter<I: IntoIterator<Item = T>>(&self, iter: I) -> &mut [T] {
204-
// Despite the similarlty with `DroplessArena`, we cannot reuse their fast case. The reason
204+
// Despite the similarity with `DroplessArena`, we cannot reuse their fast case. The reason
205205
// is subtle: these arenas are reentrant. In other words, `iter` may very well be holding a
206206
// reference to `self` and adding elements to the arena during iteration.
207207
//

0 commit comments

Comments
 (0)