[libc++][NFC] Fix typo in ranges::iterator_t synopsis
authorJoe Loser <joeloser93@gmail.com>
Sun, 21 Nov 2021 00:15:00 +0000 (19:15 -0500)
committerJoe Loser <joeloser93@gmail.com>
Sun, 21 Nov 2021 00:15:00 +0000 (19:15 -0500)
The `iterator_t` alias template is on `T` not a `R` like the other
neighboring alias templates. Fix the typo.

libcxx/include/ranges

index 8a99ee6..dd7decf 100644 (file)
@@ -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>