Bug 1279734 - "Fix two comment typos in nsTextFormatter.cpp". r=nfroyd
authorNomis101 <Nomis101@web.de>
Sat, 11 Jun 2016 10:41:45 +0200
changeset 301649 ad997d64c829560be25c661cc6a313b966bea5f2
parent 301648 c0fc5f0d1173eed6936196d3e2202d160fb98f02
child 301650 3bbe8829e4241343d9fea9b8655e50de19f5a80f
push id30337
push usercbook@mozilla.com
push dateMon, 13 Jun 2016 08:05:05 +0000
treeherdermozilla-central@fbc8f897e016 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1279734
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1279734 - "Fix two comment typos in nsTextFormatter.cpp". r=nfroyd
xpcom/glue/nsTextFormatter.cpp
--- a/xpcom/glue/nsTextFormatter.cpp
+++ b/xpcom/glue/nsTextFormatter.cpp
@@ -626,17 +626,17 @@ BuildArgArray(const char16_t* aFmt, va_l
     if (c != '%') {
       continue;
     }
     c = *p++;
     if (c == '%') {
       continue;
     }
     cn = 0;
-    /* should imporve error check later */
+    /* should improve error check later */
     while (c && c != '$') {
       cn = cn * 10 + c - '0';
       c = *p++;
     }
 
     if (!c || cn < 1 || cn > number) {
       *aRv = -1;
       break;
@@ -876,17 +876,17 @@ dosprintf(SprintfState* aState, const ch
         return rv;
       }
       continue;
     }
 
     if (nas) {
       /* the aFmt contains the Numbered Arguments feature */
       i = 0;
-      /* should imporve error check later */
+      /* should improve error check later */
       while (c && c != '$') {
         i = (i * 10) + (c - '0');
         c = *aFmt++;
       }
 
       if (nas[i - 1].type == NumArgState::UNKNOWN) {
         if (nas != nasArray) {
           PR_DELETE(nas);