This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new a9f23693 [Typo] "Back" -> "Bad" (#835)
a9f23693 is described below

commit a9f23693cae5dec57b78b858a8cc5840947a81e4
Author: Yang Lin <[email protected]>
AuthorDate: Fri Oct 2 22:14:33 2026 +0800

    [Typo] "Back" -> "Bad" (#835)
    
    "Back optional access" looks like a typo, change it to "Bad optional
    access".
    
    If "Back" is intentional, feel free to close this PR.
---
 include/tvm/ffi/optional.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/tvm/ffi/optional.h b/include/tvm/ffi/optional.h
index 24ea229b..a089618b 100644
--- a/include/tvm/ffi/optional.h
+++ b/include/tvm/ffi/optional.h
@@ -596,14 +596,14 @@ class Optional<T, 
std::enable_if_t<is_object_ptr_type_v<T> || is_arc_type_v<T>>>
 
   TVM_FFI_INLINE T value() const& {
     if (TVM_FFI_PREDICT_FALSE(!has_value())) {
-      TVM_FFI_THROW(RuntimeError) << "Back optional access";
+      TVM_FFI_THROW(RuntimeError) << "Bad optional access";
     }
     return Traits::Copy(static_cast<const StorageType&>(*this));
   }
 
   TVM_FFI_INLINE T value() && {
     if (TVM_FFI_PREDICT_FALSE(!has_value())) {
-      TVM_FFI_THROW(RuntimeError) << "Back optional access";
+      TVM_FFI_THROW(RuntimeError) << "Bad optional access";
     }
     return Traits::Move(std::move(static_cast<StorageType&>(*this)));
   }

Reply via email to