Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Print color: one spelling for the color swatch error

aiongg905e33d546e5
diff --git a/crates/engine/src/cmd/style.rs b/crates/engine/src/cmd/style.rs
index 6553e8214..5f902fc16 100644
--- a/crates/engine/src/cmd/style.rs
+++ b/crates/engine/src/cmd/style.rs
@@ -2077,7 +2077,7 @@ fn swatch_options(s: &mut Session, p: &Value) -> Result<Value> {
}
if let Some(nb) = &base {
if !d.swatch(nb).is_some_and(|x| matches!(x.value, SwatchValue::Color { .. })) || *nb == name {
- return Err(bad(ID, format!("`{nb}` isn't a colour swatch")));
+ return Err(bad(ID, format!("`{nb}` isn't a color swatch")));
}
*b = nb.clone();
}