Browse Source

:memo: fix a typo

interrputed => interrupted
Haojian Wu 9 years ago
parent
commit
4a64d1d946
2 changed files with 2 additions and 2 deletions
  1. 1 1
      atom/browser/api/atom_api_download_item.cc
  2. 1 1
      docs/api/download-item.md

+ 1 - 1
atom/browser/api/atom_api_download_item.cc

@@ -30,7 +30,7 @@ struct Converter<content::DownloadItem::DownloadState> {
         download_state = "cancelled";
         break;
       case content::DownloadItem::INTERRUPTED:
-        download_state = "interrputed";
+        download_state = "interrupted";
         break;
       default:
         break;

+ 1 - 1
docs/api/download-item.md

@@ -39,7 +39,7 @@ Emits when the `downloadItem` gets updated.
   * `interrupted` - An error broke the connection with the file server.
 
 Emits when the download is in a terminal state. This includes a completed
-download, a cancelled download(via `downloadItem.cancel()`), and interrputed
+download, a cancelled download(via `downloadItem.cancel()`), and interrupted
 download that can't be resumed.
 
 ## Methods