File tree 2 files changed +6
-4
lines changed
src/librustdoc/html/static/js
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2000,7 +2000,7 @@ function initSearch(rawSearchIndex) {
2000
2000
: results . query . elems [ 0 ] . name ;
2001
2001
output += "<h3 class=\"search-corrections\">" +
2002
2002
`Type "${ orig } " not found. ` +
2003
- "Showing results for " +
2003
+ "Showing results for closest type name " +
2004
2004
`"${ results . query . correction } " instead.</h3>` ;
2005
2005
}
2006
2006
Original file line number Diff line number Diff line change
1
+ // ignore-tidy-linelength
2
+
1
3
// Checks that the search tab result tell the user about corrections
2
4
// First, try a search-by-name
3
5
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
@@ -22,7 +24,7 @@ assert-css: (".search-corrections", {
22
24
})
23
25
assert-text: (
24
26
".search-corrections",
25
- "Type \"notablestructwithlongnamr\" not found. Showing results for \"notablestructwithlongname\" instead."
27
+ "Type \"notablestructwithlongnamr\" not found. Showing results for closest type name \"notablestructwithlongname\" instead."
26
28
)
27
29
28
30
// Corrections do get shown on the "In Return Type" tab.
@@ -33,7 +35,7 @@ assert-css: (".search-corrections", {
33
35
})
34
36
assert-text: (
35
37
".search-corrections",
36
- "Type \"notablestructwithlongnamr\" not found. Showing results for \"notablestructwithlongname\" instead."
38
+ "Type \"notablestructwithlongnamr\" not found. Showing results for closest type name \"notablestructwithlongname\" instead."
37
39
)
38
40
39
41
// Now, explicit return values
@@ -50,5 +52,5 @@ assert-css: (".search-corrections", {
50
52
})
51
53
assert-text: (
52
54
".search-corrections",
53
- "Type \"notablestructwithlongnamr\" not found. Showing results for \"notablestructwithlongname\" instead."
55
+ "Type \"notablestructwithlongnamr\" not found. Showing results for closest type name \"notablestructwithlongname\" instead."
54
56
)
You can’t perform that action at this time.
0 commit comments