mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
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:
parent
808e09180e
commit
8660e5057c
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -152,7 +152,7 @@ impl AlwaysAutofixableViolation for ExprAndNotExpr {
|
|||
///
|
||||
/// ## Example
|
||||
/// ```python
|
||||
/// x and not x
|
||||
/// x or not x
|
||||
/// ```
|
||||
///
|
||||
/// ## References
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue