diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-04-14 11:56:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-14 11:56:53 -0700 |
| commit | a245642cabda4bc0fbb8139e383294b2796ad35f (patch) | |
| tree | dd88d1c5052850512e4b60bebe2985d14323db9a | |
| parent | d44c6ed35111bdabe67f0a54fd99c4671b6c55f8 (diff) | |
| download | rust-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.rs | 2 |
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>\ |
