From 44fe0f6749249a223646baa87f9d7ce40b2e40f3 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 20 May 2024 19:29:15 -0400 Subject: [PATCH] Add rustdoc links to `marker.rs` documentation (#3680) --- crates/pep508-rs/src/marker.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/pep508-rs/src/marker.rs b/crates/pep508-rs/src/marker.rs index 1a28d7ea8..d11a29c10 100644 --- a/crates/pep508-rs/src/marker.rs +++ b/crates/pep508-rs/src/marker.rs @@ -856,7 +856,7 @@ impl MarkerEnvironment { /// A builder for constructing a marker environment. /// /// A value of this type can be fallibly converted to a full -/// [`MarkerEnvironment`] via `MarkerEnvironment::try_from`. This can fail when +/// [`MarkerEnvironment`] via [`MarkerEnvironment::try_from`]. This can fail when /// the version strings given aren't valid. /// /// The main utility of this type is for constructing dummy or test environment @@ -1138,7 +1138,7 @@ impl MarkerExpression { } } - /// Creates an instance of `MarkerExpression::Arbitrary` with the given values. + /// Creates an instance of [`MarkerExpression::Arbitrary`] with the given values. fn arbitrary( l_value: MarkerValue, operator: MarkerOperator, @@ -1151,7 +1151,7 @@ impl MarkerExpression { } } - /// Creates an instance of `MarkerExpression::Version` with the given values. + /// Creates an instance of [`MarkerExpression::Version`] with the given values. /// /// Reports a warning on failure, and returns `None`. pub fn version( @@ -1204,7 +1204,7 @@ impl MarkerExpression { Some(MarkerExpression::Version { key, specifier }) } - /// Creates an instance of `MarkerExpression::VersionInverted` with the given values. + /// Creates an instance of [`MarkerExpression::VersionInverted`] with the given values. /// /// Reports a warning on failure, and returns `None`. fn version_inverted( @@ -1248,8 +1248,8 @@ impl MarkerExpression { }) } - /// Creates an instance of `MarkerExpression::Extra` with the given values, falling back to - /// `MarkerExpression::Arbitrary` on failure. + /// Creates an instance of [`MarkerExpression::Extra`] with the given values, falling back to + /// [`MarkerExpression::Arbitrary`] on failure. fn extra( operator: MarkerOperator, value: &str,