ruff/docs
Peter Law 87406b43ea
Fix iter example in usafe fixes doc (#22118)
## Summary

This appears to have been a copy/paste error from the list example, as
the subscript is not present in the original next/iter example only in
the case where the error case is shown. While in the specific example
code the subscript actually has no effect, it does make the example
slightly confusing.

Consider the following variations, first the example from the docs
unchanged and second the same code but not hitting the intended error
case (due to using a non-empty collection):
```console
$ python3 -c 'next(iter(range(0)))[0]'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
StopIteration

$ python3 -c 'next(iter(range(1)))[0]'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: 'int' object is not subscriptable
```

## Test Plan

Not directly tested, however see inline snippets above.
2025-12-22 09:25:28 -05:00
..
.overrides Use | for page separator in meta titles (#13221) 2024-09-03 00:46:15 +00:00
assets Point docs to Astral favicon (#13219) 2024-09-02 20:11:39 -04:00
editors Update setup.md (#22024) 2025-12-17 14:56:25 +01:00
formatter Document known lambda formatting deviations from Black (#21954) 2025-12-12 12:57:09 -05:00
js Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
stylesheets Fix copy and line separator colors in dark mode (#19630) 2025-07-30 15:08:31 +01:00
.gitignore Add docs for Ruff language server (#12344) 2024-07-18 17:41:43 +05:30
configuration.md Document `*.pyw` is included by default in preview (#21885) 2025-12-10 16:43:55 +00:00
faq.md Show partial fixability indicator in statistics output (#21513) 2025-11-27 18:03:36 +01:00
formatter.md Fluent formatting of method chains (#21369) 2025-12-15 09:29:50 -06:00
installation.md Use uv consistently throughout the documentation (#15302) 2025-01-07 14:43:25 +00:00
integrations.md Bump 0.14.10 (#22058) 2025-12-18 13:08:17 -06:00
linter.md Fix iter example in usafe fixes doc (#22118) 2025-12-22 09:25:28 -05:00
preview.md Fix minor punctuation errors (#16228) 2025-02-18 12:24:57 +00:00
requirements.txt Update mkdocs-material to 9.7.0 (Insiders now free) (#21797) 2025-12-05 08:53:08 +01:00
tutorial.md Bump 0.14.10 (#22058) 2025-12-18 13:08:17 -06:00
versioning.md Ignore deprecated rules unless selected by exact code (#20167) 2025-09-10 09:00:27 -04:00