Skip to content

Commit 7d21252

Browse files
committed
Rollup merge of #55161 - akxcv:rustdoc/disable-spellcheck, r=QuietMisdreavus,GuillaumeGomez
[librustdoc] Disable spellcheck for search field This disables spellchecking for the search field in the rustdoc web interface. As someone who uses Safari to browse through Rust docs, spellchecking gets really annoying.
2 parents 919f434 + c55e1e6 commit 7d21252

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/layout.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
8383
<div class=\"search-container\">\
8484
<input class=\"search-input\" name=\"search\" \
8585
autocomplete=\"off\" \
86+
spellcheck=\"false\" \
8687
placeholder=\"Click or press ‘S’ to search, ‘?’ for more options…\" \
8788
type=\"search\">\
8889
<a id=\"settings-menu\" href=\"{root_path}settings.html\">\

0 commit comments

Comments
 (0)