From 38ce1d96b12e270863a08349b1f66200642bc4ee Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 1 Aug 2017 10:48:02 -0700 Subject: [PATCH] Remove doc comment on statement rustc warns about these now --- components/style/values/specified/image.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/values/specified/image.rs b/components/style/values/specified/image.rs index 37ed00ccf44..687c6f17d43 100644 --- a/components/style/values/specified/image.rs +++ b/components/style/values/specified/image.rs @@ -686,14 +686,14 @@ impl LineDirection { input.try(|i| { let to_ident = i.try(|i| i.expect_ident_matching("to")); match *compat_mode { - /// `to` keyword is mandatory in modern syntax. + // `to` keyword is mandatory in modern syntax. CompatMode::Modern => to_ident?, // Fall back to Modern compatibility mode in case there is a `to` keyword. // According to Gecko, `-moz-linear-gradient(to ...)` should serialize like // `linear-gradient(to ...)`. CompatMode::Moz if to_ident.is_ok() => *compat_mode = CompatMode::Modern, - /// There is no `to` keyword in webkit prefixed syntax. If it's consumed, - /// parsing should throw an error. + // There is no `to` keyword in webkit prefixed syntax. If it's consumed, + // parsing should throw an error. CompatMode::WebKit if to_ident.is_ok() => { return Err(SelectorParseError::UnexpectedIdent("to".into()).into()) },