Fix doc errors

This commit is contained in:
Emil Ernerfeldt 2021-02-07 00:11:41 +01:00
parent 7363271575
commit d6817b1b37
3 changed files with 3 additions and 3 deletions

View file

@ -119,7 +119,7 @@ pub use {
data::{input::*, output::*}, data::{input::*, output::*},
grid::Grid, grid::Grid,
id::Id, id::Id,
input_state::InputState, input_state::{InputState, PointerState},
layers::{LayerId, Order}, layers::{LayerId, Order},
layout::*, layout::*,
memory::Memory, memory::Memory,

View file

@ -141,7 +141,7 @@ impl Response {
/// The widgets is being dragged. /// The widgets is being dragged.
/// ///
/// To find out which button(s), query [`PointerState::button_down`] /// To find out which button(s), query [`crate::PointerState::button_down`]
/// (`ui.input().pointer.button_down(…)`). /// (`ui.input().pointer.button_down(…)`).
pub fn dragged(&self) -> bool { pub fn dragged(&self) -> bool {
self.dragged self.dragged

View file

@ -39,7 +39,7 @@ impl Label {
} }
/// If `true`, the text will wrap at the `max_width`. /// If `true`, the text will wrap at the `max_width`.
/// By default [`wrap`] will be true in vertical layouts /// By default [`Self::wrap`] will be true in vertical layouts
/// and horizontal layouts with wrapping, /// and horizontal layouts with wrapping,
/// and false on non-wrapping horizontal layouts. /// and false on non-wrapping horizontal layouts.
/// ///