diff options
| author | SiegeLord <slabode@aim.com> | 2013-12-01 20:42:38 -0500 |
|---|---|---|
| committer | SiegeLord <slabode@aim.com> | 2013-12-01 20:42:38 -0500 |
| commit | a3aa325c9344c2c66e8fe0c58f15b4ddd25bf4b8 (patch) | |
| tree | 92ad8b392b561a812ba78c10ed807543e849f925 | |
| parent | 0455e4c9f8354f94eb3580e0789e9b6c8e607f21 (diff) | |
Add placeholder text to the search bar in the documentation.
| -rw-r--r-- | src/librustdoc/html/layout.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index e4081df5c3c..da7bdb97124 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -59,7 +59,8 @@ pub fn render<T: fmt::Default, S: fmt::Default>( <nav class=\"sub\"> <form class=\"search-form js-only\"> <input class=\"search-input\" name=\"search\" - autocomplete=\"off\" /> + autocomplete=\"off\" + placeholder=\"Search documentation...\" /> <button class=\"do-search\">Search</button> </form> </nav> |
