From 4fc17dfd66b9631754a15ebacf9e34b42c32391b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 2 Apr 2020 02:21:43 +0200 Subject: [PATCH] Fix `Size::new` documentation --- core/src/size.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {