]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix a typo in a comment in gdbtypes.h
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 3 Nov 2025 15:07:52 +0000 (16:07 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 3 Nov 2025 15:07:52 +0000 (16:07 +0100)
Fix the typo "can server" to "can serve".

Also re-align the comment to make `void (*) ()` not break.

gdb/gdbtypes.h

index eee0445b5eb0bdf7b440a10a9a216af736251a66..ccdc18fe372fd4b8871a21e5ebd729d109af21de 100644 (file)
@@ -2141,8 +2141,8 @@ struct builtin_type
      explicitly said that pointers to functions and pointers to data
      are not interconvertible --- that is, you can't cast a function
      pointer to void * and back, and expect to get the same value.
-     However, all function pointer types are interconvertible, so void
-     (*) () can server as a generic function pointer.  */
+     However, all function pointer types are interconvertible, so
+     `void (*) ()` can serve as a generic function pointer.  */
 
   struct type *builtin_func_ptr = nullptr;