Fix collection-literal-concatenation documentation (#5320)

## Summary

Move `collection-literal-concatenation` markdown documentation to the
correct place.

Fixes error in #5262.

## Test Plan

`python scripts/check_docs_formatted.py`
This commit is contained in:
Tom Kuson 2023-06-22 23:37:54 +01:00 committed by GitHub
parent 7819b95d7f
commit 1cf307c34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,6 @@ use ruff_python_ast::helpers::has_comments;
use crate::checkers::ast::Checker;
use crate::registry::AsRule;
#[violation]
pub struct CollectionLiteralConcatenation {
expr: String,
}
/// ## What it does
/// Checks for uses of the `+` operator to concatenate collections.
///
@ -43,6 +38,11 @@ pub struct CollectionLiteralConcatenation {
/// ## References
/// - [PEP 448 Additional Unpacking Generalizations](https://peps.python.org/pep-0448/)
/// - [Python docs: Sequence Types — `list`, `tuple`, `range`](https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range)
#[violation]
pub struct CollectionLiteralConcatenation {
expr: String,
}
impl Violation for CollectionLiteralConcatenation {
const AUTOFIX: AutofixKind = AutofixKind::Sometimes;