chore: remove repetitive words (#4400)

<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to add commits to your PR.
* Remember to run `cargo fmt` and `cargo cranky`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

remove repetitive words

Signed-off-by: hardlydearly <799511800@qq.com>
This commit is contained in:
hardlydearly 2024-04-29 16:33:29 +08:00 committed by GitHub
parent c1fc9213c3
commit 3bb33980a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 14 additions and 14 deletions

View File

@ -77,7 +77,7 @@ pub fn capture() -> String {
// Remove stuff that isn't user calls: // Remove stuff that isn't user calls:
let skip_prefixes = [ let skip_prefixes = [
// "backtrace::", // not needed, since we cut at at egui::callstack::capture // "backtrace::", // not needed, since we cut at egui::callstack::capture
"egui::", "egui::",
"<egui::", "<egui::",
"<F as egui::widgets::Widget>", "<F as egui::widgets::Widget>",

View File

@ -306,7 +306,7 @@ impl Prepared {
self.content_ui.min_rect() + self.frame.inner_margin + self.frame.outer_margin self.content_ui.min_rect() + self.frame.inner_margin + self.frame.outer_margin
} }
/// Allocate the the space that was used by [`Self::content_ui`]. /// Allocate the space that was used by [`Self::content_ui`].
/// ///
/// This MUST be called, or the parent ui will not know how much space this widget used. /// This MUST be called, or the parent ui will not know how much space this widget used.
/// ///

View File

@ -257,7 +257,7 @@ pub struct RepaintCause {
/// What file had the call that requested the repaint? /// What file had the call that requested the repaint?
pub file: &'static str, pub file: &'static str,
/// What line number of the the call that requested the repaint? /// What line number of the call that requested the repaint?
pub line: u32, pub line: u32,
} }
@ -924,7 +924,7 @@ impl Context {
self.write(move |ctx| writer(&mut ctx.memory.options.tessellation_options)) self.write(move |ctx| writer(&mut ctx.memory.options.tessellation_options))
} }
/// If the given [`Id`] has been used previously the same frame at at different position, /// If the given [`Id`] has been used previously the same frame at different position,
/// then an error will be printed on screen. /// then an error will be printed on screen.
/// ///
/// This function is already called for all widgets that do any interaction, /// This function is already called for all widgets that do any interaction,

View File

@ -132,7 +132,7 @@ enum FocusDirection {
/// Select the widget below the current focused widget. /// Select the widget below the current focused widget.
Down, Down,
/// Select the widget to the left of the the current focused widget. /// Select the widget to the left of the current focused widget.
Left, Left,
/// Select the previous widget that had focus. /// Select the previous widget that had focus.
@ -812,7 +812,7 @@ impl Memory {
/// ## Popups /// ## Popups
/// Popups are things like combo-boxes, color pickers, menus etc. /// Popups are things like combo-boxes, color pickers, menus etc.
/// Only one can be be open at a time. /// Only one can be open at a time.
impl Memory { impl Memory {
/// Is the given popup open? /// Is the given popup open?
pub fn is_popup_open(&self, popup_id: Id) -> bool { pub fn is_popup_open(&self, popup_id: Id) -> bool {

View File

@ -63,7 +63,7 @@ impl CursorRange {
self.primary.ccursor == self.secondary.ccursor self.primary.ccursor == self.secondary.ccursor
} }
/// Is `self` a super-set of the the other range? /// Is `self` a super-set of the other range?
pub fn contains(&self, other: &Self) -> bool { pub fn contains(&self, other: &Self) -> bool {
let [self_min, self_max] = self.sorted_cursors(); let [self_min, self_max] = self.sorted_cursors();
let [other_min, other_max] = other.sorted_cursors(); let [other_min, other_max] = other.sorted_cursors();

View File

@ -46,7 +46,7 @@ impl TextCursorState {
self.cursor_range.is_none() && self.ccursor_range.is_none() self.cursor_range.is_none() && self.ccursor_range.is_none()
} }
/// The the currently selected range of characters. /// The currently selected range of characters.
pub fn char_range(&self) -> Option<CCursorRange> { pub fn char_range(&self) -> Option<CCursorRange> {
self.ccursor_range.or_else(|| { self.ccursor_range.or_else(|| {
self.cursor_range self.cursor_range

View File

@ -1886,7 +1886,7 @@ impl Ui {
/// adjusted up and down to lie in the center of the horizontal layout. /// adjusted up and down to lie in the center of the horizontal layout.
/// The initial height is `style.spacing.interact_size.y`. /// The initial height is `style.spacing.interact_size.y`.
/// Centering is almost always what you want if you are /// Centering is almost always what you want if you are
/// planning to to mix widgets or use different types of text. /// planning to mix widgets or use different types of text.
/// ///
/// If you don't want the contents to be centered, use [`Self::horizontal_top`] instead. /// If you don't want the contents to be centered, use [`Self::horizontal_top`] instead.
/// ///
@ -1947,7 +1947,7 @@ impl Ui {
/// adjusted up and down to lie in the center of the horizontal layout. /// adjusted up and down to lie in the center of the horizontal layout.
/// The initial height is `style.spacing.interact_size.y`. /// The initial height is `style.spacing.interact_size.y`.
/// Centering is almost always what you want if you are /// Centering is almost always what you want if you are
/// planning to to mix widgets or use different types of text. /// planning to mix widgets or use different types of text.
/// ///
/// The returned [`Response`] will only have checked for mouse hover /// The returned [`Response`] will only have checked for mouse hover
/// but can be used for tooltips (`on_hover_text`). /// but can be used for tooltips (`on_hover_text`).

View File

@ -889,7 +889,7 @@ pub enum X11WindowType {
/// This property is typically used on override-redirect windows. /// This property is typically used on override-redirect windows.
Combo, Combo,
/// This indicates the the window is being dragged. /// This indicates the window is being dragged.
/// This property is typically used on override-redirect windows. /// This property is typically used on override-redirect windows.
Dnd, Dnd,
} }
@ -1015,7 +1015,7 @@ pub enum ViewportCommand {
/// Set window to be always-on-top, always-on-bottom, or neither. /// Set window to be always-on-top, always-on-bottom, or neither.
WindowLevel(WindowLevel), WindowLevel(WindowLevel),
/// The the window icon. /// The window icon.
Icon(Option<Arc<IconData>>), Icon(Option<Arc<IconData>>),
/// Set the IME cursor editing area. /// Set the IME cursor editing area.

View File

@ -67,7 +67,7 @@ impl TextEditState {
ctx.data_mut(|d| d.insert_persisted(id, self)); ctx.data_mut(|d| d.insert_persisted(id, self));
} }
/// The the currently selected range of characters. /// The currently selected range of characters.
#[deprecated = "Use `self.cursor.char_range` instead"] #[deprecated = "Use `self.cursor.char_range` instead"]
pub fn ccursor_range(&self) -> Option<CCursorRange> { pub fn ccursor_range(&self) -> Option<CCursorRange> {
self.cursor.char_range() self.cursor.char_range()

View File

@ -653,7 +653,7 @@ pub struct TessellationOptions {
/// Default: `true`. /// Default: `true`.
pub feathering: bool, pub feathering: bool,
/// The size of the the feathering, in physical pixels. /// The size of the feathering, in physical pixels.
/// ///
/// The default, and suggested, value for this is `1.0`. /// The default, and suggested, value for this is `1.0`.
/// If you use a larger value, edges will appear blurry. /// If you use a larger value, edges will appear blurry.