mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-11 14:18:04 +00:00
Upgrade to Rust 1.80 (#12586)
This commit is contained in:
parent
ee103ffb25
commit
138e70bd5c
29 changed files with 57 additions and 48 deletions
|
@ -17,6 +17,7 @@ use crate::{has_skip_comment, prelude::*};
|
|||
/// > A compound statement consists of one or more ‘clauses.’ A clause consists of a header and a ‘suite.’
|
||||
/// > The clause headers of a particular compound statement are all at the same indentation level.
|
||||
/// > Each clause header begins with a uniquely identifying keyword and ends with a colon.
|
||||
///
|
||||
/// [source](https://docs.python.org/3/reference/compound_stmts.html#compound-statements)
|
||||
#[derive(Copy, Clone)]
|
||||
pub(crate) enum ClauseHeader<'a> {
|
||||
|
|
|
@ -928,9 +928,9 @@ impl<'src> CodeExampleDoctest<'src> {
|
|||
/// the same with two main differences:
|
||||
///
|
||||
/// 1. Literal blocks are began with a line that ends with `::`. Code block
|
||||
/// directives are began with a line like `.. code-block:: python`.
|
||||
/// directives are began with a line like `.. code-block:: python`.
|
||||
/// 2. Code block directives permit a list of options as a "field list"
|
||||
/// immediately after the opening line. Literal blocks have no options.
|
||||
/// immediately after the opening line. Literal blocks have no options.
|
||||
///
|
||||
/// Otherwise, everything else, including the indentation structure, is the
|
||||
/// same.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue