[Bf-blender-cvs] [2d7e3359c80] temp-T96710-pbvh-pixels: Cleanup: Incorrect comment in IndexRange header

Mattias Fredriksson noreply at git.blender.org
Fri Apr 8 11:07:45 CEST 2022


Commit: 2d7e3359c802a0ae09e16a319d2ac2dc305cc47e
Author: Mattias Fredriksson
Date:   Wed Apr 6 16:53:58 2022 -0500
Branches: temp-T96710-pbvh-pixels
https://developer.blender.org/rB2d7e3359c802a0ae09e16a319d2ac2dc305cc47e

Cleanup: Incorrect comment in IndexRange header

===================================================================

M	source/blender/blenlib/BLI_index_range.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_index_range.hh b/source/blender/blenlib/BLI_index_range.hh
index 832e438fa75..85f2c83364b 100644
--- a/source/blender/blenlib/BLI_index_range.hh
+++ b/source/blender/blenlib/BLI_index_range.hh
@@ -235,8 +235,8 @@ class IndexRange {
   }
 
   /**
-   * Returns a new IndexRange with n elements removed from the beginning. This invokes undefined
-   * behavior when n is negative.
+   * Returns a new IndexRange with n elements removed from the beginning of the range.
+   * This invokes undefined behavior when n is negative.
    */
   constexpr IndexRange drop_front(int64_t n) const
   {
@@ -246,8 +246,8 @@ class IndexRange {
   }
 
   /**
-   * Returns a new IndexRange with n elements removed from the beginning. This invokes undefined
-   * behavior when n is negative.
+   * Returns a new IndexRange with n elements removed from the end of the range.
+   * This invokes undefined behavior when n is negative.
    */
   constexpr IndexRange drop_back(int64_t n) const
   {



More information about the Bf-blender-cvs mailing list