Fix `Size::new` documentation
This commit is contained in:
parent
c2cb1a0c81
commit
4fc17dfd66
|
@ -20,7 +20,7 @@ impl Size {
|
||||||
/// [`Size`]: struct.Size.html
|
/// [`Size`]: struct.Size.html
|
||||||
pub const INFINITY: Size = Size::new(f32::INFINITY, f32::INFINITY);
|
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
|
/// [`Size`]: struct.Size.html
|
||||||
pub const fn new(width: f32, height: f32) -> Self {
|
pub const fn new(width: f32, height: f32) -> Self {
|
||||||
|
|
Loading…
Reference in New Issue