Fix typos in index.html (#5896)
This commit is contained in:
parent
0439486ff7
commit
df2471bf4c
1 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
const RusfmtTagsUrl = 'https://api.github.com/repos/rust-lang/rustfmt/tags';
|
const RustfmtTagsUrl = 'https://api.github.com/repos/rust-lang/rustfmt/tags';
|
||||||
const RustfmtLatestUrl = 'https://api.github.com/repos/rust-lang/rustfmt/releases/latest';
|
const RustfmtLatestUrl = 'https://api.github.com/repos/rust-lang/rustfmt/releases/latest';
|
||||||
const UrlHash = window.location.hash.replace(/^#/, '');
|
const UrlHash = window.location.hash.replace(/^#/, '');
|
||||||
const queryParams = new URLSearchParams(window.location.search);
|
const queryParams = new URLSearchParams(window.location.search);
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
created: async function() {
|
created: async function() {
|
||||||
let tags;
|
let tags;
|
||||||
try {
|
try {
|
||||||
tags = (await axios.get(RusfmtTagsUrl)).data;
|
tags = (await axios.get(RustfmtTagsUrl)).data;
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
this.handleReqFailure(e);
|
this.handleReqFailure(e);
|
||||||
return;
|
return;
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
`<p>The rate limit will be reset at ${resetDate}.</p>`;
|
`<p>The rate limit will be reset at ${resetDate}.</p>`;
|
||||||
} else {
|
} else {
|
||||||
this.aboutHtml =
|
this.aboutHtml =
|
||||||
`<p>Ecountered an error when fetching documentation data:</p>` +
|
`<p>Encountered an error when fetching documentation data:</p>` +
|
||||||
`<pre><code>${e.response.data}</code></pre>` +
|
`<pre><code>${e.response.data}</code></pre>` +
|
||||||
`<p>We would appreciate <a href="https://github.com/rust-lang/rustfmt/issues/new?template=bug_report.md">a bug report</a>.` +
|
`<p>We would appreciate <a href="https://github.com/rust-lang/rustfmt/issues/new?template=bug_report.md">a bug report</a>.` +
|
||||||
`<p>Try refreshing the page.</p>`;
|
`<p>Try refreshing the page.</p>`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue