string_view: Correct string_view(const char*, size_type) docs

This constructor has two arguments, so it is not "implicit" as was previously
stated.

PiperOrigin-RevId: 705084217
Change-Id: Ia94a2fc50c1946d45af26810b5728aa03e786746
This commit is contained in:
Abseil Team
2024-12-11 06:27:03 -08:00
committed by Copybara-Service
parent 28528f595e
commit 7bc6543deb

View File

@@ -200,7 +200,7 @@ class ABSL_ATTRIBUTE_VIEW string_view {
absl::Nonnull<const char*> str)
: ptr_(str), length_(str ? StrlenInternal(str) : 0) {}
// Implicit constructor of a `string_view` from a `const char*` and length.
// Constructor of a `string_view` from a `const char*` and length.
constexpr string_view(absl::Nullable<const char*> data, size_type len)
: ptr_(data), length_(CheckLengthInternal(len)) {}