diff --git a/doc/internals/how-to-add-new-backend.rst b/doc/internals/how-to-add-new-backend.rst index 4e4ae4e2e14..940fa7a4d1e 100644 --- a/doc/internals/how-to-add-new-backend.rst +++ b/doc/internals/how-to-add-new-backend.rst @@ -338,8 +338,8 @@ This is an example ``BackendArray`` subclass implementation: # other backend specific keyword arguments ): self.shape = shape - self.dtype = lock - self.lock = dtype + self.dtype = dtype + self.lock = lock def __getitem__( self, key: xarray.core.indexing.ExplicitIndexer