From 07e61231dff21fda6da32929c0eae82fa44f6517 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Jun 2020 17:17:10 -0400 Subject: docs: Update some links --- src/chebyshev.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/chebyshev.rs') diff --git a/src/chebyshev.rs b/src/chebyshev.rs index 335b6f1..bddbd5e 100644 --- a/src/chebyshev.rs +++ b/src/chebyshev.rs @@ -9,8 +9,8 @@ use num_traits::{zero, Signed}; /// /// This wrapper equips any [coordinate space] with the [Chebyshev distance] metric. /// -/// [coordinate space]: [Coordinates] -/// [Chebyshev distance]: https://en.wikipedia.org/wiki/Chebyshev_distance +/// [coordinate space]: Coordinates +/// [Chebyshev distance]: chebyshev_distance #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub struct Chebyshev(pub T); @@ -43,7 +43,7 @@ impl Coordinates for Chebyshev { } } -/// Compute the Chebyshev distance between two points. +/// Compute the [Chebyshev distance] between two points. /// /// ```math /// \begin{aligned} @@ -51,6 +51,8 @@ impl Coordinates for Chebyshev { /// &= \max_i |x_i - y_i| /// \end{aligned} /// ``` +/// +/// [Chebyshev distance]: https://en.wikipedia.org/wiki/Chebyshev_distance pub fn chebyshev_distance(x: T, y: U) -> T::Value where T: Coordinates, -- cgit v1.2.3