Skip to content

Commit df2471b

Browse files
authored
Fix typos in index.html (#5896)
1 parent 0439486 commit df2471b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
</article>
8888
</div>
8989
<script>
90-
const RusfmtTagsUrl = 'https://api.github.com/repos/rust-lang/rustfmt/tags';
90+
const RustfmtTagsUrl = 'https://api.github.com/repos/rust-lang/rustfmt/tags';
9191
const RustfmtLatestUrl = 'https://api.github.com/repos/rust-lang/rustfmt/releases/latest';
9292
const UrlHash = window.location.hash.replace(/^#/, '');
9393
const queryParams = new URLSearchParams(window.location.search);
@@ -190,7 +190,7 @@
190190
created: async function() {
191191
let tags;
192192
try {
193-
tags = (await axios.get(RusfmtTagsUrl)).data;
193+
tags = (await axios.get(RustfmtTagsUrl)).data;
194194
} catch(e) {
195195
this.handleReqFailure(e);
196196
return;
@@ -230,7 +230,7 @@
230230
`<p>The rate limit will be reset at ${resetDate}.</p>`;
231231
} else {
232232
this.aboutHtml =
233-
`<p>Ecountered an error when fetching documentation data:</p>` +
233+
`<p>Encountered an error when fetching documentation data:</p>` +
234234
`<pre><code>${e.response.data}</code></pre>` +
235235
`<p>We would appreciate <a href="https://github.com/rust-lang/rustfmt/issues/new?template=bug_report.md">a bug report</a>.` +
236236
`<p>Try refreshing the page.</p>`;

0 commit comments

Comments
 (0)