Fix typo in attribute access example.
Fix typo in documentation example of access function attribute where the ref-indices should be one-indexed instead of zero-indexed. gcc/ChangeLog: * doc/extend.texi (attribute access): Fix a typo.
This commit is contained in:
parent
94b94c0bb1
commit
a4df94a033
@ -2527,7 +2527,7 @@ the @code{memcpy} function.
|
||||
|
||||
@smallexample
|
||||
__attribute__ ((access (read_only, 1))) int puts (const char*);
|
||||
__attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
|
||||
__attribute__ ((access (read_only, 2, 3))) void* memcpy (void*, const void*, size_t);
|
||||
@end smallexample
|
||||
|
||||
The @code{read_write} access mode applies to arguments of pointer types
|
||||
|
Loading…
Reference in New Issue
Block a user