Skip to content

Commit

Permalink
Merge pull request #2946 from crteal:fix-min-max-deprecation-warnings
Browse files Browse the repository at this point in the history
Fix usage suggestions for min and max
  • Loading branch information
ichernev committed Mar 6, 2016
2 parents 34ff8eb + 6397a9e commit 59ba744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/moment/min-max.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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()) {
Expand Down

0 comments on commit 59ba744

Please sign in to comment.