mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 13:58:29 +00:00
pep508: fix doc test
Indented blocks in Markdown are treated as code blocks, and rustdoc treats all unadorned code blocks as Rust doctests. Since this wasn't intended as a doctest and isn't valid Rust, it makes `cargo test --doc` fail. We fix this by using an explicit code block labeled as `text`.
This commit is contained in:
parent
4b501a1393
commit
c14e30ad09
2 changed files with 16 additions and 10 deletions
|
@ -256,8 +256,10 @@ pub(crate) fn parse_marker_key_op_value<T: Pep508Url>(
|
|||
/// relatively rare so the trade-off is acceptable.
|
||||
///
|
||||
/// The following limited expression is supported:
|
||||
///
|
||||
/// [not] in '<version> [additional versions]'
|
||||
///
|
||||
/// ```text
|
||||
/// [not] in '<version> [additional versions]'
|
||||
/// ```
|
||||
///
|
||||
/// where the version is PEP 440 compliant. Arbitrary whitespace is allowed between versions.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue