Git · DiffViewer: shorter comments

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 02:25:16 -04:00
1 parent 3d0a3dee08
commit 037cae1bbc
1 file changed
+2 -2
+2 -2
View File
@@ -33,7 +33,7 @@ type OnIndex = Rc<dyn Fn(usize, &mut Window, &mut App)>;
type OnLayout = Rc<dyn Fn(DiffLayout, &mut Window, &mut App)>; type OnLayout = Rc<dyn Fn(DiffLayout, &mut Window, &mut App)>;
type OnLine = Rc<dyn Fn(Place, bool, &mut Window, &mut App)>; type OnLine = Rc<dyn Fn(Place, bool, &mut Window, &mut App)>;
/// One file's changes, unified or side by side; fills its box. /// A file's changes, unified or side by side; fills its box.
#[derive(IntoElement)] #[derive(IntoElement)]
pub struct DiffViewer { pub struct DiffViewer {
id: ElementId, id: ElementId,
@@ -123,7 +123,7 @@ impl DiffViewer {
self self
} }
/// Leaves the header, path, counts and layout, to the owner. /// Leaves header, path, counts and layout to the owner.
pub fn headless(mut self) -> Self { pub fn headless(mut self) -> Self {
self.headless = true; self.headless = true;
self self