]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix a comment typo
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Mar 2025 05:42:48 +0000 (06:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Mar 2025 05:42:48 +0000 (06:42 +0100)
During the 118874 coro investigation I found a typo in a comment.

Fixed thusly.

2025-03-05  Jakub Jelinek  <jakub@redhat.com>

* typeck.cc (check_return_expr): Fix comment typo, rom -> from.

gcc/cp/typeck.cc

index bbaca960bd7c2dbe2ff2d8ded954a1a208234143..fe8aceddffa197fe1e9e9b29cb2b73c4ba4637f2 100644 (file)
@@ -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)