Skip to content

Commit 4ab1697

Browse files
author
H. S. Teoh
committed
Better wording for clarifying how @safe restricts pointers.
1 parent 148efa9 commit 4ab1697

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/function.dd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,7 @@ $(H3 $(LNAME2 safe-functions, Safe Functions))
23482348
$(UL
23492349
$(LI No casting from a pointer type to any type other than $(CODE void*).)
23502350
$(LI No casting from any non-pointer type to a pointer type.)
2351-
$(LI No modification of pointer values other than assignment from a
2352-
pointer of the same type.)
2351+
$(LI No pointer arithmetic (including pointer indexing).)
23532352
$(LI Cannot access unions that have pointers or references overlapping
23542353
with other types.)
23552354
$(LI Calling any system functions.)

0 commit comments

Comments
 (0)