Skip to content

Commit 22f2822

Browse files
Include other examples of unsafe API names
Co-authored-by: Félix Cloutier <fcloutier@apple.com>
1 parent 4e94434 commit 22f2822

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TSPL.docc/LanguageGuide/TheBasics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,8 @@ see <doc:Concurrency>.
18261826
Sometimes you need to work outside of the bounds of safety ---
18271827
for example, because of limitations of the language or standard library ---
18281828
so Swift also provides unsafe versions of some APIs.
1829-
When you use types or methods whose name includes the word "unsafe",
1829+
When you use types or methods whose name includes words like
1830+
"unsafe", "unchecked", or "unmanaged",
18301831
you take on the responsibility for safety.
18311832

18321833
Safe code in Swift can still encounter errors and unexpected failures,

0 commit comments

Comments
 (0)