about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-04-14 11:56:53 -0700
committerGitHub <noreply@github.com>2021-04-14 11:56:53 -0700
commita245642cabda4bc0fbb8139e383294b2796ad35f (patch)
treedd88d1c5052850512e4b60bebe2985d14323db9a
parentd44c6ed35111bdabe67f0a54fd99c4671b6c55f8 (diff)
downloadrust-a245642cabda4bc0fbb8139e383294b2796ad35f.tar.gz
rust-a245642cabda4bc0fbb8139e383294b2796ad35f.zip
Change root_path to static_root_path
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
-rw-r--r--src/librustdoc/html/layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index 2ab10d5e6aa..dc67a63d333 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -114,7 +114,7 @@ crate fn render<T: Print, S: Print>(
     {after_content}\
     <div id=\"rustdoc-vars\" data-root-path=\"{root_path}\" data-current-crate=\"{krate}\" \
        data-search-index-js=\"{root_path}search-index{suffix}.js\" \
-       data-search-js=\"{root_path}search{suffix}.js\"></div>
+       data-search-js=\"{static_root_path}search{suffix}.js\"></div>
     <script src=\"{static_root_path}main{suffix}.js\"></script>\
     {extra_scripts}\
 </body>\