From d6817b1b3742f571acc48ea8a411a5bf85d04be2 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 7 Feb 2021 00:11:41 +0100 Subject: [PATCH] Fix doc errors --- egui/src/lib.rs | 2 +- egui/src/response.rs | 2 +- egui/src/widgets/label.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/egui/src/lib.rs b/egui/src/lib.rs index 299ed97a..dfb0c568 100644 --- a/egui/src/lib.rs +++ b/egui/src/lib.rs @@ -119,7 +119,7 @@ pub use { data::{input::*, output::*}, grid::Grid, id::Id, - input_state::InputState, + input_state::{InputState, PointerState}, layers::{LayerId, Order}, layout::*, memory::Memory, diff --git a/egui/src/response.rs b/egui/src/response.rs index 61bed986..4316da07 100644 --- a/egui/src/response.rs +++ b/egui/src/response.rs @@ -141,7 +141,7 @@ impl Response { /// 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(…)`). pub fn dragged(&self) -> bool { self.dragged diff --git a/egui/src/widgets/label.rs b/egui/src/widgets/label.rs index 1a51aae2..884d98a7 100644 --- a/egui/src/widgets/label.rs +++ b/egui/src/widgets/label.rs @@ -39,7 +39,7 @@ impl Label { } /// 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 false on non-wrapping horizontal layouts. ///