https://gcc.gnu.org/g:b85b405ed333a428a51b68cb914a48ac31bf0203

commit r15-7823-gb85b405ed333a428a51b68cb914a48ac31bf0203
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Mar 5 06:42:48 2025 +0100

    c++: Fix a comment typo
    
    During the 118874 coro investigation I found a typo in a comment.
    
    Fixed thusly.
    
    2025-03-05  Jakub Jelinek  <ja...@redhat.com>
    
            * typeck.cc (check_return_expr): Fix comment typo, rom -> from.

Diff:
---
 gcc/cp/typeck.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/typeck.cc b/gcc/cp/typeck.cc
index bbaca960bd7c..fe8aceddffa1 100644
--- a/gcc/cp/typeck.cc
+++ b/gcc/cp/typeck.cc
@@ -11450,7 +11450,7 @@ check_return_expr (tree retval, bool *no_warning, bool 
*dangling)
       bool converted = false;
       tree moved;
       /* Until C++23, this was only interesting for class type, but in C++23,
-        we should do the below when we're converting rom/to a class/reference
+        we should do the below when we're converting from/to a class/reference
         (a non-scalar type).  */
        if ((cxx_dialect < cxx23
             ? CLASS_TYPE_P (functype)

Reply via email to