From 2da09c1947e0660d805a8aa7705a04f360d231e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 29 Sep 2026 18:43:49 -0400 Subject: [PATCH] =?UTF-8?q?Port=20=C2=B7=20Parity:=20the=20last=20long=20c?= =?UTF-8?q?omments=20are=20short?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/gallery/capture.rs | 2 +- src/interaction/rotatable.rs | 2 +- src/primitives/layer.rs | 2 +- src/typography/fit.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gallery/capture.rs b/examples/gallery/capture.rs index 3dfbd74..54f9498 100644 --- a/examples/gallery/capture.rs +++ b/examples/gallery/capture.rs @@ -114,7 +114,7 @@ pub fn number(window: &Window) -> Result { u32::try_from(number).context("window number out of range") } -/// Takes posted mouse moves; gpui's tracking area takes only real ones. +/// Takes posted mouse moves; a tracking area takes real ones. #[cfg(target_os = "macos")] fn take_posted_moves(window: &Window) -> Result<()> { use cocoa::{appkit::NSWindow, base::YES}; diff --git a/src/interaction/rotatable.rs b/src/interaction/rotatable.rs index d6aa963..ba2d712 100644 --- a/src/interaction/rotatable.rs +++ b/src/interaction/rotatable.rs @@ -28,7 +28,7 @@ fn angle_at(bounds: Bounds, at: Point, snap: bool) -> f32 { type OnTurn = Rc; -/// An svg turned clockwise by degrees, with a knob to drag. +/// An svg turned clockwise by degrees, with a knob. #[derive(IntoElement)] pub struct Rotatable { id: ElementId, diff --git a/src/primitives/layer.rs b/src/primitives/layer.rs index 950891c..1c95733 100644 --- a/src/primitives/layer.rs +++ b/src/primitives/layer.rs @@ -16,7 +16,7 @@ fn nested() -> bool { LAYERS.with_borrow(|layers| !layers.is_empty()) } -/// Draws `child` over the page; inside a raise, last within it. +/// Draws `child` over the page, last inside a raise. pub fn raise(id: impl Into, child: impl IntoElement) -> Raised { let layer = Layer { child: child.into_any_element(), diff --git a/src/typography/fit.rs b/src/typography/fit.rs index c59945f..b5a5227 100644 --- a/src/typography/fit.rs +++ b/src/typography/fit.rs @@ -111,7 +111,7 @@ fn offset(align: TextAlign, free: Pixels) -> Pixels { } } -/// One line in the text style around it, cut by `fit` to its box and set by its alignment. +/// One line, cut by `fit` to its box and aligned. fn cut_line(text: SharedString, fit: fn(&str, Pixels, &mut Window) -> String) -> Div { let line = text.clone(); div()