aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2017-10-17 09:39:20 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2017-10-17 11:24:57 -0700
commitefc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (patch)
tree66fa87d72ee1c1254baf153756888c49c3d2692f /components/selectors/parser.rs
parentaa3122e7d1beb6c72868baf80d565b0760641b1d (diff)
downloadservo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.tar.gz
servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.zip
Fix commonmark Markdown warnings in docs, part 1
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
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'),