From 406fa60c9eae959b2323c1a1af8b69997ac2db27 Mon Sep 17 00:00:00 2001 From: Alyssa Haroldsen Date: Thu, 11 Jan 2024 11:32:53 -0800 Subject: [PATCH] Edit comment in empty_repeated suggesting it's a thread-local value PiperOrigin-RevId: 597610971 --- rust/upb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/upb.rs b/rust/upb.rs index 50b7b5fab2..052e17786d 100644 --- a/rust/upb.rs +++ b/rust/upb.rs @@ -519,7 +519,7 @@ pub fn cast_enum_repeated_mut( pub fn empty_array() -> RepeatedView<'static, T> { // TODO: Consider creating a static empty array in C. - // Use `i32` for a shared empty repeated for all repeated types on a thread. + // Use `i32` for a shared empty repeated for all repeated types in the program. static EMPTY_REPEATED_VIEW: OnceLock> = OnceLock::new(); // SAFETY: