Skip to content

Commit f747f50

Browse files
docs: Fix is_birthday example
The example in the documentation asserts that `pendulum.datetime(1987, 4, 23).is_birthday(pendulum.datetime(2014, 2, 23))`, but that is probably just a typo.
1 parent 7e3880a commit f747f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ the `now()` is created in the same timezone as the instance.
6464

6565
>>> born = pendulum.datetime(1987, 4, 23)
6666
>>> not_birthday = pendulum.datetime(2014, 9, 26)
67-
>>> birthday = pendulum.datetime(2014, 2, 23)
67+
>>> birthday = pendulum.datetime(2014, 4, 23)
6868
>>> past_birthday = pendulum.now().subtract(years=50)
6969

7070
>>> born.is_birthday(not_birthday)

0 commit comments

Comments
 (0)