Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Oct 29, 2024
1 parent 703c702 commit 048c69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/egui_kittest/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions crates/egui_kittest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 048c69a

Please sign in to comment.