Skip to content

Commit 2342788

Browse files
authored
Fix wrong replacement function in deprecation notice of drag_released* (#4314)
Quick thing I noticed while updating a crate to egui 0.27.
1 parent 15b0ef3 commit 2342788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/egui/src/response.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ impl Response {
361361

362362
/// The widget was being dragged, but now it has been released.
363363
#[inline]
364-
#[deprecated = "Renamed 'dragged_stopped'"]
364+
#[deprecated = "Renamed 'drag_stopped'"]
365365
pub fn drag_released(&self) -> bool {
366366
self.drag_stopped
367367
}
368368

369369
/// The widget was being dragged by the button, but now it has been released.
370-
#[deprecated = "Renamed 'dragged_stopped_by'"]
370+
#[deprecated = "Renamed 'drag_stopped_by'"]
371371
pub fn drag_released_by(&self, button: PointerButton) -> bool {
372372
self.drag_stopped_by(button)
373373
}

0 commit comments

Comments
 (0)