From 71061b53bb927deefd65a194db8ae510f5232d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 25 Nov 2025 22:37:44 +0100 Subject: [PATCH] Fix `InputMethod::merge` example in documentation --- core/src/input_method.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/input_method.rs b/core/src/input_method.rs index 107fb27b..ab19a69c 100644 --- a/core/src/input_method.rs +++ b/core/src/input_method.rs @@ -87,16 +87,16 @@ impl InputMethod { /// Merges two [`InputMethod`] strategies, prioritizing the first one when both open: /// ``` /// # use iced_core::input_method::{InputMethod, Purpose, Preedit}; - /// # use iced_core::Point; + /// # use iced_core::{Point, Rectangle, Size}; /// /// let open = InputMethod::Enabled { - /// position: Point::ORIGIN, + /// cursor: Rectangle::new(Point::ORIGIN, Size::UNIT), /// purpose: Purpose::Normal, /// preedit: Some(Preedit { content: "1".to_owned(), selection: None, text_size: None }), /// }; /// /// let open_2 = InputMethod::Enabled { - /// position: Point::ORIGIN, + /// cursor: Rectangle::new(Point::ORIGIN, Size::UNIT), /// purpose: Purpose::Secure, /// preedit: Some(Preedit { content: "2".to_owned(), selection: None, text_size: None }), /// };