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/coords.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/coords.rs') diff --git a/src/coords.rs b/src/coords.rs index 08e807c..a95e378 100644 --- a/src/coords.rs +++ b/src/coords.rs @@ -24,7 +24,7 @@ pub trait Coordinates { } } -/// [Coordinates] implementation for slices. +/// [`Coordinates`] implementation for slices. impl Coordinates for [T] { type Value = T; @@ -37,7 +37,7 @@ impl Coordinates for [T] { } } -/// [Coordinates] implementation for arrays. +/// [`Coordinates`] implementation for arrays. macro_rules! array_coordinates { ($n:expr) => ( impl Coordinates for [T; $n] { @@ -63,7 +63,7 @@ array_coordinates!(6); array_coordinates!(7); array_coordinates!(8); -/// [Coordinates] implemention for vectors. +/// [`Coordinates`] implemention for vectors. impl Coordinates for Vec { type Value = T; @@ -76,7 +76,7 @@ impl Coordinates for Vec { } } -/// Blanket [Coordinates] implementation for references. +/// Blanket [`Coordinates`] implementation for references. impl Coordinates for &T { type Value = T::Value; @@ -97,7 +97,7 @@ pub trait CoordinateProximity { fn distance_to_coords(&self, coords: &[T]) -> Self::Distance; } -/// Blanket [CoordinateProximity] implementation for references. +/// Blanket [`CoordinateProximity`] implementation for references. impl, U> CoordinateProximity for &T { type Distance = T::Distance; @@ -109,5 +109,5 @@ impl, U> CoordinateProximity for &T { /// Marker trait for coordinate proximities that are [metrics][crate::distance::Metric]. pub trait CoordinateMetric: CoordinateProximity {} -/// Blanket [CoordinateMetric] implementation for references. +/// Blanket [`CoordinateMetric`] implementation for references. impl, U> CoordinateMetric for &T {} -- cgit v1.2.3