Skip to content

Commit a3aa325

Browse files
committed
Add placeholder text to the search bar in the documentation.
1 parent 0455e4c commit a3aa325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
5959
<nav class=\"sub\">
6060
<form class=\"search-form js-only\">
6161
<input class=\"search-input\" name=\"search\"
62-
autocomplete=\"off\" />
62+
autocomplete=\"off\"
63+
placeholder=\"Search documentation...\" />
6364
<button class=\"do-search\">Search</button>
6465
</form>
6566
</nav>

0 commit comments

Comments
 (0)