summaryrefslogtreecommitdiff
path: root/src/parse/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/mod.rs')
-rw-r--r--src/parse/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs
index 261bbabb..04a9de58 100644
--- a/src/parse/mod.rs
+++ b/src/parse/mod.rs
@@ -487,9 +487,9 @@ fn ident(p: &mut Parser) -> Option<Ident> {
/// Parse a color.
fn color(p: &mut Parser, hex: &str, start: Pos) -> RgbaColor {
RgbaColor::from_str(hex).unwrap_or_else(|_| {
- // Heal color by assuming black.
+ // Replace color with black.
p.diag(error!(start .. p.pos(), "invalid color"));
- RgbaColor::with_healed(0, 0, 0, 255, true)
+ RgbaColor::new(0, 0, 0, 255)
})
}