File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustdoc/html/render Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ pub(super) fn write_shared(
297297 . replace( "\\ \" " , "\\ \\ \" " )
298298 ) ) ;
299299 all_sources. sort ( ) ;
300- let mut v = String :: from ( "const srcIndex = new Map(JSON.parse('[\\ \n " ) ;
300+ let mut v = String :: from ( "var srcIndex = new Map(JSON.parse('[\\ \n " ) ;
301301 v. push_str ( & all_sources. join ( ",\\ \n " ) ) ;
302302 v. push_str ( "\\ \n ]'));\n createSrcSidebar();\n " ) ;
303303 Ok ( v. into_bytes ( ) )
@@ -317,7 +317,7 @@ pub(super) fn write_shared(
317317 // with rustdoc running in parallel.
318318 all_indexes. sort ( ) ;
319319 write_invocation_specific ( "search-index.js" , & || {
320- let mut v = String :: from ( "const searchIndex = new Map(JSON.parse('[\\ \n " ) ;
320+ let mut v = String :: from ( "var searchIndex = new Map(JSON.parse('[\\ \n " ) ;
321321 v. push_str ( & all_indexes. join ( ",\\ \n " ) ) ;
322322 v. push_str (
323323 r#"\
You can’t perform that action at this time.
0 commit comments