about summary refs log tree commit diff
path: root/src/tools/rustfmt/docs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2023-10-22 20:21:44 -0500
committerCaleb Cartwright <caleb.cartwright@outlook.com>2023-10-22 20:21:44 -0500
commit7650a7542cf5a88f9d4ae6e7683b4978f444d2fe (patch)
tree1216c838164a1ceb3ba1532f41513d8faed59879 /src/tools/rustfmt/docs
parent9372999916341733303de236ba8279ccbc64b35b (diff)
parent81fe905ca83cffe84322f27ca43950b617861ff7 (diff)
downloadrust-7650a7542cf5a88f9d4ae6e7683b4978f444d2fe.tar.gz
rust-7650a7542cf5a88f9d4ae6e7683b4978f444d2fe.zip
Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync
Diffstat (limited to 'src/tools/rustfmt/docs')
-rw-r--r--src/tools/rustfmt/docs/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/rustfmt/docs/index.html b/src/tools/rustfmt/docs/index.html
index 4fa932d4c76..ee0339bc50d 100644
--- a/src/tools/rustfmt/docs/index.html
+++ b/src/tools/rustfmt/docs/index.html
@@ -87,7 +87,7 @@
           </article>
         </div>
         <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 UrlHash = window.location.hash.replace(/^#/, '');
             const queryParams = new URLSearchParams(window.location.search);
@@ -190,7 +190,7 @@
               created: async function() {
                 let tags;
                 try {
-                  tags = (await axios.get(RusfmtTagsUrl)).data;
+                  tags = (await axios.get(RustfmtTagsUrl)).data;
                 } catch(e) {
                   this.handleReqFailure(e);
                   return;
@@ -230,7 +230,7 @@
                       `<p>The rate limit will be reset at ${resetDate}.</p>`;
                   } else {
                     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>` +
                       `<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>`;