summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-04-02 16:53:54 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-02 16:53:54 +0200
commit3aafd2c1f7539806449b116fa98d6bf0fff94de8 (patch)
tree727eb202e24d66836065e89c279d400c053563c0 /core/src
parent2fa6edf7a8b2a6e06b42ff9879fe81cbd1a957c6 (diff)
parent4a498ed0e3d0526ce9f47b7eefa0b2716f9b27a8 (diff)
downloadiced-3aafd2c1f7539806449b116fa98d6bf0fff94de8.tar.gz
iced-3aafd2c1f7539806449b116fa98d6bf0fff94de8.tar.bz2
iced-3aafd2c1f7539806449b116fa98d6bf0fff94de8.zip
Merge pull request #252 from hecrj/improvement/documentation
Update and improve documentation
Diffstat (limited to 'core/src')
-rw-r--r--core/src/point.rs2
-rw-r--r--core/src/size.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/point.rs b/core/src/point.rs
index 43ee2143..2b5ad154 100644
--- a/core/src/point.rs
+++ b/core/src/point.rs
@@ -11,7 +11,7 @@ pub struct Point {
}
impl Point {
- /// The origin (i.e. a [`Point`] with both X=0 and Y=0).
+ /// The origin (i.e. a [`Point`] at (0, 0)).
///
/// [`Point`]: struct.Point.html
pub const ORIGIN: Point = Point::new(0.0, 0.0);
diff --git a/core/src/size.rs b/core/src/size.rs
index 389b3247..4276f05f 100644
--- a/core/src/size.rs
+++ b/core/src/size.rs
@@ -20,7 +20,7 @@ impl Size {
/// [`Size`]: struct.Size.html
pub const INFINITY: Size = Size::new(f32::INFINITY, f32::INFINITY);
- /// A [`Size`] of infinite width and height.
+ /// Creates a new [`Size`] with the given width and height.
///
/// [`Size`]: struct.Size.html
pub const fn new(width: f32, height: f32) -> Self {