From 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20 Mon Sep 17 00:00:00 2001
From: Alexis Beingessner
Date: Sat, 9 Aug 2014 09:20:44 -0400
Subject: [PATCH] removing 'str'='struct' search synonym
fixes #16384
---
src/librustdoc/html/layout.rs | 2 +-
src/librustdoc/html/static/main.js | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index 2e1b8d32dd3..896d070c155 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -106,7 +106,7 @@ pub fn render(
Accepted types are: fn
, mod
,
- struct
(or str
), enum
,
+ struct
, enum
,
trait
, typedef
(or
tdef
).
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 9b44dc63f38..2ce9c53d3e8 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -370,10 +370,9 @@
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);