Skip to content

Commit 231057c

Browse files
authored
Rollup merge of #135594 - lolbinarycat:tester.js-order-error, r=notriddle
fix error for when results in a rustdoc-js test are in the wrong order see #131806 (comment)
2 parents c438930 + 08c1256 commit 231057c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rustdoc-js/tester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async function runSearch(query, expected, doSearch, loadedFile, queryName) {
256256
JSON.stringify(results[key][index]) + "'");
257257
} else if (ignore_order === false && entry_pos < prev_pos) {
258258
error_text.push(queryName + "==> '" + JSON.stringify(elem) + "' was supposed " +
259-
"to be before '" + JSON.stringify(results[key][entry_pos]) + "'");
259+
"to be before '" + JSON.stringify(results[key][prev_pos]) + "'");
260260
} else {
261261
prev_pos = entry_pos;
262262
}

0 commit comments

Comments
 (0)