diff --git a/crates/egui_kittest/src/snapshot.rs b/crates/egui_kittest/src/snapshot.rs index f6511c451a0..0e7e40475a6 100644 --- a/crates/egui_kittest/src/snapshot.rs +++ b/crates/egui_kittest/src/snapshot.rs @@ -220,8 +220,12 @@ pub enum SnapshotError { }, } +#[cfg(not(target_os = "windows"))] const HOW_TO_UPDATE_SCREENSHOTS: &str = "Run `UPDATE_SNAPSHOTS=1 cargo test --all-features` to update the snapshots."; +#[cfg(target_os = "windows")] +const HOW_TO_UPDATE_SCREENSHOTS: &str = + "Run `$env:UPDATE_SNAPSHOTS=1; cargo test --all-features` to update the snapshots."; impl Display for SnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {