Skip to content

Commit 325c392

Browse files
WalterBrightdlang-bot
authored andcommitted
specify @trusted functions must have @safe interface
1 parent e8f3754 commit 325c392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/memory-safe-d.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $(H2 $(LNAME2 usage, Usage))
3838
$(P `@trusted` functions have all the capabilities of `@system` functions but may be called from
3939
`@safe` functions. For this reason they should be very limited in the scope of their use. Typical uses of
4040
`@trusted` functions include wrapping system calls that take buffer pointer and length arguments separately so that
41-
@safe` functions may call them with arrays.)
41+
`@safe` functions may call them with arrays. `@trusted` functions must have a $(DDSUBLINK spec/function, safe-interfaces, safe interface).)
4242

4343
$(P `@safe` functions have a number of restrictions on what they may do and are intended to disallow operations that
4444
may cause memory corruption. See $(DDSUBLINK spec/function, safe-functions, `@safe` functions).)

0 commit comments

Comments
 (0)