Skip to content

Commit ada0c6a

Browse files
author
bors-servo
authored
Auto merge of #191 - tromey:url-doc-fix, r=SimonSapin
Change documentation of UnquotedUrl UnquotedUrl is only used for url() without quotes, so update the documentation to say so. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/191) <!-- Reviewable:end -->
2 parents 3792662 + 5d141c8 commit ada0c6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tokenizer.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ pub enum Token<'a> {
4444
/// The value does not include the quotes.
4545
QuotedString(CowRcStr<'a>),
4646

47-
/// A [`<url-token>`](https://drafts.csswg.org/css-syntax/#url-token-diagram) or `url( <string-token> )` function
47+
/// A [`<url-token>`](https://drafts.csswg.org/css-syntax/#url-token-diagram)
4848
///
49-
/// The value does not include the `url(` `)` markers or the quotes.
49+
/// The value does not include the `url(` `)` markers. Note that `url( <string-token> )` is represented by a
50+
/// `Function` token.
5051
UnquotedUrl(CowRcStr<'a>),
5152

5253
/// A `<delim-token>`

0 commit comments

Comments
 (0)