Skip to content

Commit fe1bf63

Browse files
committed
Improve comment
1 parent fc0a202 commit fe1bf63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tokenizer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,9 @@ impl<'a> Tokenizer<'a> {
15611561
Some('$') => {
15621562
if !end_tag_name.is_empty() {
15631563
if end_tag_name == value {
1564-
// Found the end delimiter, truncate the string
1564+
// We found the end delimiter
1565+
// Let's remove the tag name from the string content
1566+
// (plus the dollar sign of the end delimiter)
15651567
s.truncate(s.len() - value.len() - 1);
15661568
break;
15671569
} else {

0 commit comments

Comments
 (0)