Fix minor document errors (#6533)

## Summary

Fix minor errors in the sample codes of some rules.

## Test Plan

N/A (Just fix document typos.)
This commit is contained in:
Takuma Watanabe 2023-08-14 02:35:30 +09:00 committed by GitHub
parent 808e09180e
commit 8660e5057c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ impl Violation for SuspiciousPickleUsage {
/// import marshal
///
/// with open("foo.marshal", "rb") as file:
/// foo = pickle.load(file)
/// foo = marshal.load(file)
/// ```
///
/// Use instead:

View file

@ -152,7 +152,7 @@ impl AlwaysAutofixableViolation for ExprAndNotExpr {
///
/// ## Example
/// ```python
/// x and not x
/// x or not x
/// ```
///
/// ## References