Skip to content

Commit

Permalink
Fix typos and false positives found by new version of 'typos'
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Apr 2, 2024
1 parent 0a40b16 commit 058f475
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# run: typos

[default.extend-words]
ime = "ime" # Input Method Editor
nknown = "nknown" # part of @55nknown username
ro = "ro" # read-only, also part of the username @Phen-Ro

[files]
extend-exclude = ["web_demo/egui_demo_app.js"] # auto-generated
4 changes: 2 additions & 2 deletions crates/eframe/src/native/glow_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ impl GlowWinitRunning {
#[cfg(feature = "__screenshot")]
if integration.egui_ctx.frame_nr() == 2 {
if let Ok(path) = std::env::var("EFRAME_SCREENSHOT_TO") {
save_screeshot_and_exit(&path, &painter, screen_size_in_pixels);
save_screenshot_and_exit(&path, &painter, screen_size_in_pixels);
}
}

Expand Down Expand Up @@ -1498,7 +1498,7 @@ fn render_immediate_viewport(
}

#[cfg(feature = "__screenshot")]
fn save_screeshot_and_exit(
fn save_screenshot_and_exit(
path: &str,
painter: &egui_glow::Painter,
screen_size_in_pixels: [u32; 2],
Expand Down
2 changes: 1 addition & 1 deletion crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@ impl Context {
/// The `Context` lock is held while the given closure is called!
///
/// Returns `None` if acesskit is off.
// TODO(emilk): consider making both RO and RW versions
// TODO(emilk): consider making both read-only and read-write versions
#[cfg(feature = "accesskit")]
pub fn accesskit_node_builder<R>(
&self,
Expand Down

0 comments on commit 058f475

Please sign in to comment.