mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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.
This commit is contained in:
parent
aa3122e7d1
commit
efc3683cc7
137 changed files with 572 additions and 565 deletions
|
@ -28,7 +28,7 @@ pub type Name = Atom;
|
|||
|
||||
/// Parse a custom property name.
|
||||
///
|
||||
/// https://drafts.csswg.org/css-variables/#typedef-custom-property-name
|
||||
/// <https://drafts.csswg.org/css-variables/#typedef-custom-property-name>
|
||||
pub fn parse_name(s: &str) -> Result<&str, ()> {
|
||||
if s.starts_with("--") {
|
||||
Ok(&s[2..])
|
||||
|
@ -317,7 +317,7 @@ fn parse_self_contained_declaration_value<'i, 't>(
|
|||
Ok((first, css, last))
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value
|
||||
/// <https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value>
|
||||
fn parse_declaration_value<'i, 't>(
|
||||
input: &mut Parser<'i, 't>,
|
||||
references: Option<&mut PrecomputedHashSet<Name>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue