aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r--components/selectors/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs
index 093ccf366e1..117f0104d65 100644
--- a/components/selectors/parser.rs
+++ b/components/selectors/parser.rs
@@ -82,7 +82,7 @@ macro_rules! with_all_bounds {
///
/// NB: We need Clone so that we can derive(Clone) on struct with that
/// are parameterized on SelectorImpl. See
- /// https://github.com/rust-lang/rust/issues/26925
+ /// <https://github.com/rust-lang/rust/issues/26925>
pub trait SelectorImpl: Clone + Sized + 'static {
type AttrValue: $($InSelector)*;
type Identifier: $($InSelector)* + PrecomputedHash;
@@ -177,7 +177,7 @@ pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);
impl<Impl: SelectorImpl> SelectorList<Impl> {
/// Parse a comma-separated list of Selectors.
- /// https://drafts.csswg.org/selectors/#grouping
+ /// <https://drafts.csswg.org/selectors/#grouping>
///
/// Return the Selectors or Err if there is an invalid selector.
pub fn parse<'i, 't, P>(parser: &P, input: &mut CssParser<'i, 't>)
@@ -898,7 +898,7 @@ impl<Impl: SelectorImpl> ToCss for Component<Impl> {
use self::Component::*;
/// Serialize <an+b> values (part of the CSS Syntax spec, but currently only used here).
- /// https://drafts.csswg.org/css-syntax-3/#serialize-an-anb-value
+ /// <https://drafts.csswg.org/css-syntax-3/#serialize-an-anb-value>
fn write_affine<W>(dest: &mut W, a: i32, b: i32) -> fmt::Result where W: fmt::Write {
match (a, b) {
(0, 0) => dest.write_char('0'),