diff options
author | 2020-11-25 07:11:27 +0100 | |
---|---|---|
committer | 2020-11-26 02:05:43 +0100 | |
commit | 01322f69a406eee76014f5e2834336e2295ad80e (patch) | |
tree | 380d9224b81537e460ea7f9fe84c0c912d3f4cbf /core/src/point.rs | |
parent | d612bf56784b41346f18ad9eda4f6d54d699dcb5 (diff) | |
download | iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.gz iced-01322f69a406eee76014f5e2834336e2295ad80e.tar.bz2 iced-01322f69a406eee76014f5e2834336e2295ad80e.zip |
Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
Diffstat (limited to 'core/src/point.rs')
-rw-r--r-- | core/src/point.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/src/point.rs b/core/src/point.rs index 7d93538f..9bf7726b 100644 --- a/core/src/point.rs +++ b/core/src/point.rs @@ -12,20 +12,14 @@ pub struct Point { impl Point { /// The origin (i.e. a [`Point`] at (0, 0)). - /// - /// [`Point`]: struct.Point.html pub const ORIGIN: Point = Point::new(0.0, 0.0); /// Creates a new [`Point`] with the given coordinates. - /// - /// [`Point`]: struct.Point.html pub const fn new(x: f32, y: f32) -> Self { Self { x, y } } /// Computes the distance to another [`Point`]. - /// - /// [`Point`]: struct.Point.html pub fn distance(&self, to: Point) -> f32 { let a = self.x - to.x; let b = self.y - to.y; |