[libcxx-commits] [libcxx] dca681f - [libc++][NFC] Fix typo in ranges::iterator_t synopsis

Joe Loser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Nov 20 16:16:42 PST 2021


Author: Joe Loser
Date: 2021-11-20T19:15:00-05:00
New Revision: dca681fee93e12d1e06733b607dec9f11d538151

URL: https://github.com/llvm/llvm-project/commit/dca681fee93e12d1e06733b607dec9f11d538151
DIFF: https://github.com/llvm/llvm-project/commit/dca681fee93e12d1e06733b607dec9f11d538151.diff

LOG: [libc++][NFC] Fix typo in ranges::iterator_t synopsis

The `iterator_t` alias template is on `T` not a `R` like the other
neighboring alias templates. Fix the typo.

Added: 
    

Modified: 
    libcxx/include/ranges

Removed: 
    


################################################################################
diff  --git a/libcxx/include/ranges b/libcxx/include/ranges
index 8a99ee64cfc9f..dd7decf66fa87 100644
--- a/libcxx/include/ranges
+++ b/libcxx/include/ranges
@@ -36,7 +36,7 @@ namespace std::ranges {
     inline constexpr bool enable_borrowed_range = false;
 
   template<class T>
-    using iterator_t = decltype(ranges::begin(declval<R&>()));
+    using iterator_t = decltype(ranges::begin(declval<T&>()));
   template<range R>
     using sentinel_t = decltype(ranges::end(declval<R&>()));
   template<range R>


        


More information about the libcxx-commits mailing list