We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b36867 commit cfd754dCopy full SHA for cfd754d
src/librustdoc/theme.rs
@@ -110,7 +110,7 @@ fn load_css_events(v: &[u8]) -> Vec<Events> {
110
let mut pos = 0;
111
let mut events = Vec::with_capacity(100);
112
113
- while pos < v.len() - 1 {
+ while pos + 1 < v.len() {
114
match v[pos] {
115
b'/' if pos + 1 < v.len() && v[pos + 1] == b'*' => {
116
events.push(Events::StartComment(pos));
0 commit comments