Skip to content

Commit 8861b8a

Browse files
committed
docs/reference: fix typos.
1 parent 456dcae commit 8861b8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amaranth/hdl/_ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def __rrshift__(self, other):
10391039
def shift_right(self, amount):
10401040
"""Right shift by constant amount.
10411041
1042-
If :py:`amount < 0`, performs the same operation as :py:`self.left_right(-amount)`.
1042+
If :py:`amount < 0`, performs the same operation as :py:`self.shift_left(-amount)`.
10431043
10441044
Returns
10451045
-------
@@ -1062,7 +1062,7 @@ def shift_right(self, amount):
10621062
def rotate_right(self, amount):
10631063
"""Right rotate by constant amount.
10641064
1065-
If :py:`amount < 0`, performs the same operation as :py:`self.rotate_right(-amount)`.
1065+
If :py:`amount < 0`, performs the same operation as :py:`self.rotate_left(-amount)`.
10661066
10671067
Returns
10681068
-------

0 commit comments

Comments
 (0)