about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Komarov <ak@akxcv.com>2018-10-17 23:58:21 +0300
committerAlexander Komarov <ak@akxcv.com>2018-10-17 23:58:21 +0300
commitc55e1e69e32686b5d10fb5df650ec8cbee8b19fb (patch)
tree13f37bc0652e9282ca4548340e82fd15a37107bd
parent1dceaddfbe163e2d916c904b98923342730ba970 (diff)
downloadrust-c55e1e69e32686b5d10fb5df650ec8cbee8b19fb.tar.gz
rust-c55e1e69e32686b5d10fb5df650ec8cbee8b19fb.zip
[librustdoc] Disable spellcheck for search field
-rw-r--r--src/librustdoc/html/layout.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index 582f31ce7c7..6868c7707ad 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -83,6 +83,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
             <div class=\"search-container\">\
                 <input class=\"search-input\" name=\"search\" \
                        autocomplete=\"off\" \
+                       spellcheck=\"false\" \
                        placeholder=\"Click or press ‘S’ to search, ‘?’ for more options…\" \
                        type=\"search\">\
                 <a id=\"settings-menu\" href=\"{root_path}settings.html\">\