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 44e3daf commit a3958d0Copy full SHA for a3958d0
src/librustdoc/html/static/main.js
@@ -667,13 +667,7 @@ function defocusSearchBar() {
667
results = {}, results_in_args = {}, results_returned = {},
668
split = valLower.split("::");
669
670
- var length = split.length;
671
- for (var z = 0; z < length; ++z) {
672
- if (split[z] === "") {
673
- split.splice(z, 1);
674
- z -= 1;
675
- }
676
+ split = split.filter(function(segment) { return segment !== ""; });
677
678
function transformResults(results, isType) {
679
var out = [];
0 commit comments