mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb: fix a typo in a comment in gdbtypes.h
Fix the typo "can server" to "can serve". Also re-align the comment to make `void (*) ()` not break.
This commit is contained in:
@@ -2141,8 +2141,8 @@ struct builtin_type
|
|||||||
explicitly said that pointers to functions and pointers to data
|
explicitly said that pointers to functions and pointers to data
|
||||||
are not interconvertible --- that is, you can't cast a function
|
are not interconvertible --- that is, you can't cast a function
|
||||||
pointer to void * and back, and expect to get the same value.
|
pointer to void * and back, and expect to get the same value.
|
||||||
However, all function pointer types are interconvertible, so void
|
However, all function pointer types are interconvertible, so
|
||||||
(*) () can server as a generic function pointer. */
|
`void (*) ()` can serve as a generic function pointer. */
|
||||||
|
|
||||||
struct type *builtin_func_ptr = nullptr;
|
struct type *builtin_func_ptr = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user