Skip to content

Commit a4df94a

Browse files
Forrest-TMartin Sebor
authored andcommitted
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.
1 parent 94b94c0 commit a4df94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/doc/extend.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ the @code{memcpy} function.
25272527

25282528
@smallexample
25292529
__attribute__ ((access (read_only, 1))) int puts (const char*);
2530-
__attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
2530+
__attribute__ ((access (read_only, 2, 3))) void* memcpy (void*, const void*, size_t);
25312531
@end smallexample
25322532

25332533
The @code{read_write} access mode applies to arguments of pointer types

0 commit comments

Comments
 (0)