Skip to content

Commit 2680831

Browse files
committed
Cleanun string_view
1 parent 8978ab0 commit 2680831

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/fmt/base.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,13 +527,13 @@ template <typename Char> class basic_string_view {
527527

528528
constexpr basic_string_view() noexcept : data_(nullptr), size_(0) {}
529529

530-
/// Constructs a string reference object from a C string and a size.
530+
/// Constructs a string view object from a C string and a size.
531531
constexpr basic_string_view(const Char* s, size_t count) noexcept
532532
: data_(s), size_(count) {}
533533

534534
constexpr basic_string_view(nullptr_t) = delete;
535535

536-
/// Constructs a string reference object from a C string.
536+
/// Constructs a string view object from a C string.
537537
#if FMT_GCC_VERSION
538538
FMT_ALWAYS_INLINE
539539
#endif
@@ -549,7 +549,7 @@ template <typename Char> class basic_string_view {
549549
size_ = len;
550550
}
551551

552-
/// Constructs a string reference from a `std::basic_string` or a
552+
/// Constructs a string view from a `std::basic_string` or a
553553
/// `std::basic_string_view` object.
554554
template <typename S,
555555
FMT_ENABLE_IF(detail::is_std_string_like<S>::value&& std::is_same<
@@ -586,7 +586,6 @@ template <typename Char> class basic_string_view {
586586
return starts_with(basic_string_view<Char>(s));
587587
}
588588

589-
// Lexicographically compare this string reference to other.
590589
FMT_CONSTEXPR auto compare(basic_string_view other) const -> int {
591590
int result =
592591
detail::compare(data_, other.data_, min_of(size_, other.size_));

0 commit comments

Comments
 (0)