Skip to content

Commit 5d141c8

Browse files
committed
Change documentation of UnquotedUrl
UnquotedUrl is only used for url() without quotes, so update the documentation to say so.
1 parent 17d2a1d commit 5d141c8

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)