]> git.lizzy.rs Git - rust.git/commitdiff
removing 'str'='struct' search synonym
authorAlexis Beingessner <a.beingessner@gmail.com>
Sat, 9 Aug 2014 13:20:44 +0000 (09:20 -0400)
committerAlexis Beingessner <a.beingessner@gmail.com>
Sat, 9 Aug 2014 19:59:47 +0000 (15:59 -0400)
fixes #16384

src/librustdoc/html/layout.rs
src/librustdoc/html/static/main.js

index 2e1b8d32dd39e03da0cbc31b1154c3606bf9bbd9..896d070c155eecd79d2260aabb310bc44c729fa0 100644 (file)
@@ -106,7 +106,7 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
             </p>
             <p>
                 Accepted types are: <code>fn</code>, <code>mod</code>,
-                <code>struct</code> (or <code>str</code>), <code>enum</code>,
+                <code>struct</code>, <code>enum</code>,
                 <code>trait</code>, <code>typedef</code> (or
                 <code>tdef</code>).
             </p>
index 9b44dc63f383b889f1a6b095ca1d661276f90432..2ce9c53d3e835ef3177e39dcd9136c12d7ab3b8b 100644 (file)
         function getQuery() {
             var matches, type, query = $('.search-input').val();
 
-            matches = query.match(/^(fn|mod|str(uct)?|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
+            matches = query.match(/^(fn|mod|struct|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
             if (matches) {
                 type = matches[1].replace(/^td$/, 'typedef')
-                                 .replace(/^str$/, 'struct')
                                  .replace(/^tdef$/, 'typedef')
                                  .replace(/^typed$/, 'typedef');
                 query = query.substring(matches[0].length);