File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1852,6 +1852,9 @@ function defocusSearchBar() {
1852
1852
var crateSize = 0 ;
1853
1853
1854
1854
searchWords . push ( crate ) ;
1855
+ // This object should have exactly the same set of fields as the "row"
1856
+ // object defined below. Your JavaScript runtime will thank you.
1857
+ // https://mathiasbynens.be/notes/shapes-ics
1855
1858
var crateRow = {
1856
1859
crate : crate ,
1857
1860
ty : 1 , // == ExternCrate
@@ -1902,6 +1905,8 @@ function defocusSearchBar() {
1902
1905
len = itemTypes . length ;
1903
1906
var lastPath = "" ;
1904
1907
for ( i = 0 ; i < len ; ++ i ) {
1908
+ // This object should have exactly the same set of fields as the "crateRow"
1909
+ // object defined above.
1905
1910
var row = {
1906
1911
crate : crate ,
1907
1912
ty : itemTypes [ i ] ,
You can’t perform that action at this time.
0 commit comments