Skip to content

Commit 20c1117

Browse files
Fixed typos.
1 parent 53f07cd commit 20c1117

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prompt_toolkit/layout/containers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ class ScrollOffsets(object):
704704
"""
705705
Scroll offsets for the :class:`.Window` class.
706706
707-
Note that left/rigth offsets only make sense if line wrapping is disabled.
707+
Note that left/right offsets only make sense if line wrapping is disabled.
708708
"""
709709
def __init__(self, top=0, bottom=0, left=0, right=0):
710710
self.top = top
@@ -840,7 +840,7 @@ def _merge_dimensions(dimension, preferred=None, dont_extend=False):
840840
"""
841841
dimension = dimension or LayoutDimension()
842842

843-
# When a preferred dimension was explicitely given to the Window,
843+
# When a preferred dimension was explicitly given to the Window,
844844
# ignore the UIControl.
845845
if dimension.preferred_specified:
846846
preferred = dimension.preferred
@@ -855,7 +855,7 @@ def _merge_dimensions(dimension, preferred=None, dont_extend=False):
855855
preferred = max(preferred, dimension.min)
856856

857857
# When a `dont_extend` flag has been given, use the preferred dimension
858-
# also as the max demension.
858+
# also as the max dimension.
859859
if dont_extend and preferred is not None:
860860
max_ = min(dimension.max, preferred)
861861
else:
@@ -928,7 +928,7 @@ def mouse_handler(cli, mouse_event):
928928
move_x = 0
929929

930930
def render_margin(m, width):
931-
" Render margin. return `Screen`. "
931+
" Render margin. Return `Screen`. "
932932
# Retrieve margin tokens.
933933
tokens = m.create_margin(cli, self.render_info, width, write_position.height)
934934

0 commit comments

Comments
 (0)