Skip to content

Commit cfd754d

Browse files
Fix theme-checker failure
1 parent 8b36867 commit cfd754d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/theme.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn load_css_events(v: &[u8]) -> Vec<Events> {
110110
let mut pos = 0;
111111
let mut events = Vec::with_capacity(100);
112112

113-
while pos < v.len() - 1 {
113+
while pos + 1 < v.len() {
114114
match v[pos] {
115115
b'/' if pos + 1 < v.len() && v[pos + 1] == b'*' => {
116116
events.push(Events::StartComment(pos));

0 commit comments

Comments
 (0)