Skip to content

Commit ad47c89

Browse files
committed
fix typo
1 parent 35ba7dd commit ad47c89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/static/js/scrape-examples.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global addClass, hasClass, removeClass, onEachLazy, nonnull */
1+
/* global addClass, hasClass, removeClass, onEachLazy, nonnull */
22

33
"use strict";
44

@@ -127,9 +127,9 @@
127127
* @param {boolean} isHidden
128128
*/
129129
function setupLoc(example, isHidden) {
130-
const locs_str = example.attributes.getNamedItem("data-locs")).textContent;
130+
const locs_str = example.attributes.getNamedItem("data-locs").textContent;
131131
const locs = example.locs =
132-
JSON.parse(nonnull(nonnull(locs_str));
132+
JSON.parse(nonnull(nonnull(locs_str)));
133133
// Start with the first example in view
134134
scrollToLoc(example, locs[0][0], isHidden);
135135
}

0 commit comments

Comments
 (0)