From c0e834e68fb3d43d18a23363db14866a9ad01a07 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 14 Oct 2025 22:40:04 +0200 Subject: [PATCH] fix(docs): Fix typo in `RUF015` description --- .../rules/unnecessary_iterable_allocation_for_first_element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/ruff/rules/unnecessary_iterable_allocation_for_first_element.rs b/crates/ruff_linter/src/rules/ruff/rules/unnecessary_iterable_allocation_for_first_element.rs index ae09b7f544a65..803adda4df7f2 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/unnecessary_iterable_allocation_for_first_element.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/unnecessary_iterable_allocation_for_first_element.rs @@ -48,7 +48,7 @@ use crate::{AlwaysFixableViolation, Edit, Fix}; /// element. As such, any side effects that occur during iteration will be /// delayed. /// 2. Second, accessing members of a collection via square bracket notation -/// `[0]` of the `pop()` function will raise `IndexError` if the collection +/// `[0]` or the `pop()` function will raise `IndexError` if the collection /// is empty, while `next(iter(...))` will raise `StopIteration`. /// /// ## References