mirror of https://github.com/astral-sh/ruff
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
|
|
@ -76,7 +76,7 @@ impl Violation for SuspiciousPickleUsage {
|
||||||
/// import marshal
|
/// import marshal
|
||||||
///
|
///
|
||||||
/// with open("foo.marshal", "rb") as file:
|
/// with open("foo.marshal", "rb") as file:
|
||||||
/// foo = pickle.load(file)
|
/// foo = marshal.load(file)
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ impl AlwaysAutofixableViolation for ExprAndNotExpr {
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```python
|
/// ```python
|
||||||
/// x and not x
|
/// x or not x
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## References
|
/// ## References
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue