Auto merge of #17934 - Manishearth:doc-comment, r=canaltinova

Remove doc comment on statement

rustc warns about these now

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17934)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-08-01 12:57:42 -05:00 committed by GitHub
commit b49311c65a

View file

@ -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())
},