Skip to content

Commit 48b8fce

Browse files
authored
Fix a typo in variable.py (#11182)
1 parent 3e2597a commit 48b8fce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

doc/whats-new.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Documentation
4848
Internal Changes
4949
~~~~~~~~~~~~~~~~
5050

51+
- Fix a typo in ``xarray/core/variable.py`` (:pull:`11182`).
5152
- Fix a typo in ``xarray/backends/api.py`` (:pull:`11180`).
5253
By `Yaocheng Chen <https://github.com/yaochengchen>`_.
5354

xarray/core/variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def _broadcast_indexes_vectorized(self, key):
773773
if dim in variable_dims:
774774
# We only convert slice objects to variables if they share
775775
# a dimension with at least one other variable. Otherwise,
776-
# we can equivalently leave them as slices aknd transpose
776+
# we can equivalently leave them as slices and transpose
777777
# the result. This is significantly faster/more efficient
778778
# for most array backends.
779779
values = np.arange(*value.indices(self.sizes[dim]))
@@ -1355,7 +1355,7 @@ def _roll_one_dim(self, dim, count):
13551355

13561356
def roll(self, shifts=None, **shifts_kwargs):
13571357
"""
1358-
Return a new Variable with rolld data.
1358+
Return a new Variable with rolled data.
13591359
13601360
Parameters
13611361
----------

0 commit comments

Comments
 (0)