Fix `Size::new` documentation

This commit is contained in:
Héctor Ramón Jiménez 2020-04-02 02:21:43 +02:00
parent c2cb1a0c81
commit 4fc17dfd66
1 changed files with 1 additions and 1 deletions

View File

@ -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 {