From bd3629c6b9b501df1d1c9e4813c4158062a3aeb7 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 10 Sep 2024 05:47:35 -0700 Subject: [PATCH] Fix comment reference to cpp `std::string_view` PiperOrigin-RevId: 672926915 --- rust/upb/string_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/upb/string_view.rs b/rust/upb/string_view.rs index c39b2b2dbc..6325fee469 100644 --- a/rust/upb/string_view.rs +++ b/rust/upb/string_view.rs @@ -7,11 +7,11 @@ /// ABI compatible struct with upb_StringView. /// -/// Note that this has semantics similar to `core::string_view` in C++ and +/// Note that this has semantics similar to `std::string_view` in C++ and /// `&[u8]` in Rust, but is not ABI-compatible with either. /// /// If `len` is 0, then `ptr` is allowed to be either null or dangling. C++ -/// considers a dangling 0-len `core::string_view` to be invalid, and Rust +/// considers a dangling 0-len `std::string_view` to be invalid, and Rust /// considers a `&[u8]` with a null data pointer to be invalid. #[repr(C)] #[derive(Copy, Clone)]