]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix usage suggestions for min and max
authorColin Teal <the30yearswar@hotmail.com>
Wed, 3 Feb 2016 21:27:46 +0000 (13:27 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 6 Mar 2016 08:47:29 +0000 (00:47 -0800)
src/lib/moment/min-max.js

index e355883c8aca5de7b9dad6a7c348889ffad0c030..aad6f6f304ef5ad809a163d738e202b45f8f7471 100644 (file)
@@ -4,7 +4,7 @@ import { createLocal } from '../create/local';
 import { createInvalid } from '../create/valid';
 
 export var prototypeMin = deprecate(
-     'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
+     'moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
      function () {
          var other = createLocal.apply(null, arguments);
          if (this.isValid() && other.isValid()) {
@@ -16,7 +16,7 @@ export var prototypeMin = deprecate(
  );
 
 export var prototypeMax = deprecate(
-    'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
+    'moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
     function () {
         var other = createLocal.apply(null, arguments);
         if (this.isValid() && other.isValid()) {