Bug 1463266 - fix typos in comm-central using codespell. rs=comment-only,typo-fix
authorJorg K <jorgk@jorgk.com>
Tue, 22 Oct 2019 15:23:42 +0200
changeset 36452 e5ccd3ff3f182bf23e800eaa23e433d801411029
parent 36451 773bd81d318a3d993125794abb639676ad508bf5
child 36453 65b0b80b1b8ff39661452ada6a41cc1f148dd115
push id2534
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:52:51 +0000
treeherdercomm-beta@055c50840778 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscomment-only, typo-fix
bugs1463266
Bug 1463266 - fix typos in comm-central using codespell. rs=comment-only,typo-fix
calendar/timezones/update-zones.py
chat/components/src/logger.js
mail/base/content/mailWidgets.js
mailnews/base/search/src/nsMsgFilterService.cpp
--- a/calendar/timezones/update-zones.py
+++ b/calendar/timezones/update-zones.py
@@ -155,17 +155,17 @@ class TimezoneUpdater(object):
             kept_components.append(component)
             if key <= HISTORY_CUTOFF:
                 finished = True
 
         for i in range(len(kept_components)):
             component = kept_components[i]
             last = i == len(kept_components) - 1
             # In this block of code, we attempt to match what vzic does when
-            # creating "Outlook-compatible" timezone files. This is to minimise
+            # creating "Outlook-compatible" timezone files. This is to minimize
             # changes in our zones.json file. And to be more Outlook-compatible.
             if int(component["DTSTART"][0:8]) < HISTORY_CUTOFF:
                 if not last and "valid_rdates" in component and len(component["valid_rdates"]) > 0:
                     component["DTSTART"] = component["valid_rdates"][0]
                     continue
 
                 # Change the start date to what it would've been in 1970.
                 start_date = "19700101"
@@ -194,17 +194,17 @@ class TimezoneUpdater(object):
                                 days_matching.append(test_day)
                             test_day = test_day + timedelta(days=1)
                         start_date = days_matching[which_weekday].strftime("%Y%m%d")
                         start_time = component["DTSTART"][8:]
 
                 component["DTSTART"] = start_date + start_time
 
         # Sort the components back into the order they appeared in the original file.
-        # This is to minimise changes in our zones.json file.
+        # This is to minimize changes in our zones.json file.
         kept_components.sort(key=lambda b: b["line"])
 
         zone_name = filename[:-4]
         ics = []
         for component in kept_components:
             ics_lines = []
             ics_lines.append("BEGIN:%s" % component["type"])
             if len(kept_components) == 1 or len(component["TZOFFSETFROM"]) != 5:
--- a/chat/components/src/logger.js
+++ b/chat/components/src/logger.js
@@ -480,17 +480,17 @@ function closeSystemLogWriter(aAccount) 
  *          that the log file represents, and the file type as a string.
  */
 function getDateFromFilename(aFilename) {
   const kRegExp = /([\d]{4})-([\d]{2})-([\d]{2}).([\d]{2})([\d]{2})([\d]{2})([+-])([\d]{2})([\d]{2}).*\.([A-Za-z]+)$/;
 
   let r = aFilename.match(kRegExp);
   if (!r) {
     Cu.reportError(
-      "Found log file with name not maching YYYY-MM-DD.HHmmSS+ZZzz.format: " +
+      "Found log file with name not matching YYYY-MM-DD.HHmmSS+ZZzz.format: " +
         aFilename
     );
     return [];
   }
 
   // We ignore the timezone offset for now (FIXME)
   return [new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]), r[10]];
 }
--- a/mail/base/content/mailWidgets.js
+++ b/mail/base/content/mailWidgets.js
@@ -1468,17 +1468,17 @@
             return i + 1;
           }
         }
 
         // If we get here, we must have gone back to the beginning of the list, so just return 0.
         return 0;
       }
 
-      // We didn't go far enough! Keep going until we find an item atleast partially on-screen.
+      // We didn't go far enough! Keep going until we find an item at least partially on-screen.
       for (let i = estimatedIndex; i < this._childNodes.length; i++) {
         let childBoxObj = this._childNodes[i].getBoundingClientRect();
         if (childBoxObj.screenY + childBoxObj.height > box.screenY > 0) {
           return i;
         }
       }
 
       return null;
--- a/mailnews/base/search/src/nsMsgFilterService.cpp
+++ b/mailnews/base/search/src/nsMsgFilterService.cpp
@@ -1016,17 +1016,17 @@ nsresult nsMsgFilterAfterTheFact::ApplyF
           nsMsgFilterTypeType filterType;
           m_curFilter->GetFilterType(&filterType);
           nsCOMPtr<nsIMsgFilterCustomAction> customAction;
           rv = filterAction->GetCustomAction(getter_AddRefs(customAction));
           BREAK_ACTION_IF_FAILURE(rv, "Could not get custom action");
 
           nsAutoCString value;
           rv = filterAction->GetStrValue(value);
-          BREAK_ACTION_IF_FAILURE(rv, "Cound not get custom action value");
+          BREAK_ACTION_IF_FAILURE(rv, "Could not get custom action value");
           bool isAsync = false;
           customAction->GetIsAsync(&isAsync);
           rv = customAction->Apply(m_searchHitHdrs, value, this, filterType,
                                    m_msgWindow);
           BREAK_ACTION_IF_FAILURE(rv, "custom action failed to apply");
           if (isAsync) {
             MOZ_LOG(FILTERLOGMODULE, LogLevel::Debug,
                     ("(Post) Action execution continues async"));