mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
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:
committed by
Copybara-Service
parent
28528f595e
commit
7bc6543deb
@@ -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)) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user