Skip to content

Commit 894d002

Browse files
andriyorsdispater
authored andcommitted
fix mismatch import in the documentation (#176)
1 parent c206fc2 commit 894d002

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_docs/comparison.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ the ``now()`` is created in the same timezone as the instance.
102102
103103
import pendulum
104104
105-
dt = Pendulum.now()
105+
dt = pendulum.now()
106106
107107
dt.is_weekday()
108108
dt.is_weekend()
@@ -112,7 +112,7 @@ the ``now()`` is created in the same timezone as the instance.
112112
dt.is_future()
113113
dt.is_past()
114114
dt.is_leap_year()
115-
dt.is_same_day(Pendulum.now())
115+
dt.is_same_day(pendulum.now())
116116
117117
born = pendulum.create(1987, 4, 23)
118118
not_birthday = pendulum.create(2014, 9, 26)

docs/_docs/difference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You may also pass ``True`` as a 2nd parameter to remove the modifiers `ago`, `fr
8686
pendulum.now().subtract(days=1).diff_for_humans()
8787
'5 days ago'
8888
89-
pendulum.now().diff_for_humans(Pendulum.now().subtract(years=1))
89+
pendulum.now().diff_for_humans(pendulum.now().subtract(years=1))
9090
'1 year after'
9191
9292
dt = pendulum.create(2011, 8, 1)

0 commit comments

Comments
 (0)