[Bf-blender-cvs] [a55b73417f0] master: Cleanup: Correct comments
Hans Goudey
noreply at git.blender.org
Wed Jun 2 14:28:55 CEST 2021
Commit: a55b73417f023a74c62773a6dc467146a2218519
Author: Hans Goudey
Date: Wed Jun 2 08:28:46 2021 -0400
Branches: master
https://developer.blender.org/rBa55b73417f023a74c62773a6dc467146a2218519
Cleanup: Correct comments
This corrects an outdated comment in the vector header and a typo
in the index mask header.
===================================================================
M source/blender/blenlib/BLI_index_mask.hh
M source/blender/blenlib/BLI_vector.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_index_mask.hh b/source/blender/blenlib/BLI_index_mask.hh
index 48b01edcd6f..f04c0e9c80a 100644
--- a/source/blender/blenlib/BLI_index_mask.hh
+++ b/source/blender/blenlib/BLI_index_mask.hh
@@ -110,7 +110,7 @@ class IndexMask {
}
/**
- * Returns the n-th index referenced by this IndexMask. The `index_mask` method returns an
+ * Returns the n-th index referenced by this IndexMask. The `index_range` method returns an
* IndexRange containing all indices that can be used as parameter here.
*/
int64_t operator[](int64_t n) const
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh
index 8bea2584ca7..f6f546c90b9 100644
--- a/source/blender/blenlib/BLI_vector.hh
+++ b/source/blender/blenlib/BLI_vector.hh
@@ -161,7 +161,7 @@ class Vector {
}
/**
- * Create a vector from an array ref. The values in the vector are copy constructed.
+ * Create a vector from a span. The values in the vector are copy constructed.
*/
template<typename U, typename std::enable_if_t<std::is_convertible_v<U, T>> * = nullptr>
Vector(Span<U> values, Allocator allocator = {}) : Vector(NoExceptConstructor(), allocator)
More information about the Bf-blender-cvs
mailing list