From 048c69af38f18a85be12dd07ab336a3c27d3a7c1 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Tue, 29 Oct 2024 21:37:53 +0100 Subject: [PATCH] Fix docs --- crates/egui_kittest/src/builder.rs | 2 +- crates/egui_kittest/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/egui_kittest/src/builder.rs b/crates/egui_kittest/src/builder.rs index 2a2128d0de9..edf84b87f5a 100644 --- a/crates/egui_kittest/src/builder.rs +++ b/crates/egui_kittest/src/builder.rs @@ -27,7 +27,7 @@ impl HarnessBuilder { self } - /// Set the pixels_per_point of the window. + /// Set the `pixels_per_point` of the window. #[inline] pub fn with_pixels_per_point(mut self, pixels_per_point: f32) -> Self { self.pixels_per_point = pixels_per_point; diff --git a/crates/egui_kittest/src/lib.rs b/crates/egui_kittest/src/lib.rs index d9900041f8c..dbfde8748c8 100644 --- a/crates/egui_kittest/src/lib.rs +++ b/crates/egui_kittest/src/lib.rs @@ -139,8 +139,8 @@ impl<'a> Harness<'a> { self } - /// Set the pixels_per_point of the window. - /// Note: If you only want to set the pixels_per_point once at the beginning, + /// Set the `pixels_per_point` of the window. + /// Note: If you only want to set the `pixels_per_point` once at the beginning, /// prefer using [`HarnessBuilder::with_pixels_per_point`]. #[inline] pub fn set_pixels_per_point(&mut self, pixels_per_point: f32) -> &mut Self {