File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Some things that might be helpful to you though:
45
45
-->
46
46
<fieldset id="search-from" style="display:none">
47
47
<label><input name="from" value="library" type="radio"> From the Standard Library</label>
48
- <label><input name="from" value="dro " type="radio" checked> From DuckDuckGo</label>
48
+ <label><input name="from" value="duckduckgo " type="radio" checked> From DuckDuckGo</label>
49
49
</fieldset>
50
50
</form >
51
51
</div >
@@ -81,7 +81,7 @@ function on_submit(event) {
81
81
82
82
event .preventDefault ();
83
83
84
- if (form[' from' ].value === ' dro ' ) {
84
+ if (form[' from' ].value === ' duckduckgo ' ) {
85
85
document .location .href = form .action + ' ?q=' + encodeURIComponent (q + ' site:doc.rust-lang.org' );
86
86
} else if (form[' from' ].value === ' library' ) {
87
87
document .location .href = ' std/index.html?search=' + encodeURIComponent (q);
You can’t perform that action at this time.
0 commit comments