Fix documentation of MouseArea::new

This commit is contained in:
Héctor Ramón Jiménez 2023-04-13 06:50:00 +02:00
parent f55a97b738
commit 020f1120e3
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -90,7 +90,7 @@ struct State {
}
impl<'a, Message, Renderer> MouseArea<'a, Message, Renderer> {
/// Creates an empty [`MouseArea`].
/// Creates a [`MouseArea`] with the given content.
pub fn new(content: impl Into<Element<'a, Message, Renderer>>) -> Self {
MouseArea {
content: content.into(),