docs: Fix "it's" typos that should be "its" (#8690)

These all meant to use the possessive "its" rather than the contraction
of "it is".
This commit is contained in:
Brian Donovan 2024-03-01 17:32:27 -08:00 committed by GitHub
parent 03f18053bb
commit a84a3c0ebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 23 additions and 23 deletions

View file

@ -480,7 +480,7 @@ impl Interactivity {
self.tooltip_builder = Some(Rc::new(build_tooltip));
}
/// Block the mouse from interacting with this element or any of it's children
/// Block the mouse from interacting with this element or any of its children
/// The imperative API equivalent to [`InteractiveElement::block_mouse`]
pub fn block_mouse(&mut self) {
self.block_mouse = true;
@ -508,7 +508,7 @@ pub trait InteractiveElement: Sized {
/// Track the focus state of the given focus handle on this element.
/// If the focus handle is focused by the application, this element will
/// apply it's focused styles.
/// apply its focused styles.
fn track_focus(mut self, focus_handle: &FocusHandle) -> Focusable<Self> {
self.interactivity().focusable = true;
self.interactivity().tracked_focus_handle = Some(focus_handle.clone());
@ -834,7 +834,7 @@ pub trait InteractiveElement: Sized {
self
}
/// Block the mouse from interacting with this element or any of it's children
/// Block the mouse from interacting with this element or any of its children
/// The fluent API equivalent to [`Interactivity::block_mouse`]
fn block_mouse(mut self) -> Self {
self.interactivity().block_mouse();

View file

@ -2,7 +2,7 @@ use crate::{Action, KeyBindingContextPredicate, KeyMatch, Keystroke};
use anyhow::Result;
use smallvec::SmallVec;
/// A keybinding and it's associated metadata, from the keymap.
/// A keybinding and its associated metadata, from the keymap.
pub struct KeyBinding {
pub(crate) action: Box<dyn Action>,
pub(crate) keystrokes: SmallVec<[Keystroke; 2]>,

View file

@ -122,7 +122,7 @@ pub struct Style {
#[cfg(debug_assertions)]
pub debug: bool,
/// Whether to draw a red debugging outline around this element and all of it's conforming children
/// Whether to draw a red debugging outline around this element and all of its conforming children
#[cfg(debug_assertions)]
pub debug_below: bool,
}
@ -148,7 +148,7 @@ pub enum Visibility {
pub struct BoxShadow {
/// What color should the shadow have?
pub color: Hsla,
/// How should it be offset from it's element?
/// How should it be offset from its element?
pub offset: Point<Pixels>,
/// How much should the shadow be blurred?
pub blur_radius: Pixels,
@ -333,7 +333,7 @@ impl Style {
}
/// Get the content mask for this element style, based on the given bounds.
/// If the element does not hide it's overflow, this will return `None`.
/// If the element does not hide its overflow, this will return `None`.
pub fn overflow_mask(
&self,
bounds: Bounds<Pixels>,

View file

@ -515,13 +515,13 @@ pub trait Styled: Sized {
&mut style.text
}
/// Set the text color of this element, this value cascades to it's child elements.
/// Set the text color of this element, this value cascades to its child elements.
fn text_color(mut self, color: impl Into<Hsla>) -> Self {
self.text_style().get_or_insert_with(Default::default).color = Some(color.into());
self
}
/// Set the font weight of this element, this value cascades to it's child elements.
/// Set the font weight of this element, this value cascades to its child elements.
fn font_weight(mut self, weight: FontWeight) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -529,7 +529,7 @@ pub trait Styled: Sized {
self
}
/// Set the background color of this element, this value cascades to it's child elements.
/// Set the background color of this element, this value cascades to its child elements.
fn text_bg(mut self, bg: impl Into<Hsla>) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -537,7 +537,7 @@ pub trait Styled: Sized {
self
}
/// Set the text size of this element, this value cascades to it's child elements.
/// Set the text size of this element, this value cascades to its child elements.
fn text_size(mut self, size: impl Into<AbsoluteLength>) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -563,7 +563,7 @@ pub trait Styled: Sized {
self
}
/// Reset the text styling for this element and it's children.
/// Reset the text styling for this element and its children.
fn text_base(mut self) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -607,7 +607,7 @@ pub trait Styled: Sized {
self
}
/// Remove the text decoration on this element, this value cascades to it's child elements.
/// Remove the text decoration on this element, this value cascades to its child elements.
fn text_decoration_none(mut self) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -679,7 +679,7 @@ pub trait Styled: Sized {
self
}
/// Change the font on this element and it's children.
/// Change the font on this element and its children.
fn font(mut self, family_name: impl Into<SharedString>) -> Self {
self.text_style()
.get_or_insert_with(Default::default)
@ -687,7 +687,7 @@ pub trait Styled: Sized {
self
}
/// Set the line height on this element and it's children.
/// Set the line height on this element and its children.
fn line_height(mut self, line_height: impl Into<DefiniteLength>) -> Self {
self.text_style()
.get_or_insert_with(Default::default)

View file

@ -40,7 +40,7 @@ pub struct ShapedGlyph {
/// The ID for this glyph, as determined by the text system.
pub id: GlyphId,
/// The position of this glyph in it's containing line.
/// The position of this glyph in its containing line.
pub position: Point<Pixels>,
/// The index of this glyph in the original text.