Skip to content

Commit a672de7

Browse files
authored
Fix source comment typo (#4388)
1 parent a6e75e4 commit a672de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/eigen/tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ struct type_caster<Type, typename eigen_tensor_helper<Type>::ValidType> {
279279
case return_value_policy::take_ownership:
280280
if (std::is_const<C>::value) {
281281
// This cast is ugly, and might be UB in some cases, but we don't have an
282-
// alterantive here as we must free that memory
282+
// alternative here as we must free that memory
283283
Helper::free(const_cast<Type *>(src));
284284
pybind11_fail("Cannot take ownership of a const reference");
285285
}

0 commit comments

Comments
 (0)