]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] minor typo in comments (#4817)
authorIoannis Cherouvim <743305+cherouvim@users.noreply.github.com>
Wed, 31 Oct 2018 03:16:09 +0000 (05:16 +0200)
committerKunal Marwaha <marwahaha@berkeley.edu>
Wed, 31 Oct 2018 03:16:09 +0000 (23:16 -0400)
* minor typo in comments

* only update file in src/

* only update file in src/

src/lib/create/from-array.js

index b5a0911de1103a7448bf2bf1bf4df4e4a13245f2..548992f73dc6659cb106b22e98a633bdffda83a6 100644 (file)
@@ -125,13 +125,13 @@ function dayOfYearFromWeekInfo(config) {
                 weekdayOverflow = true;
             }
         } else if (w.e != null) {
-            // local weekday -- counting starts from begining of week
+            // local weekday -- counting starts from beginning of week
             weekday = w.e + dow;
             if (w.e < 0 || w.e > 6) {
                 weekdayOverflow = true;
             }
         } else {
-            // default to begining of week
+            // default to beginning of week
             weekday = dow;
         }
     }