Skip to content

Commit c84d29e

Browse files
authored
Merge pull request swiftlang#21179 from apple/invariably_sane
2 parents 95d76cd + 2c550d0 commit c84d29e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/StandardLibraryProgrammersManual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ return
9292
This should be rarely used. It informs the SIL optimizer that any code dominated by it should be treated as the innermost loop of a performance critical section of code. It cranks optimizer heuristics to 11. Injudicious use of this will degrade performance and bloat binary size.
9393

9494

95-
#### <a name="precondition"></a>`_precondition`, `_debugPrecondition`, and `_sanityCheck`
95+
#### <a name="precondition"></a>`_precondition`, `_debugPrecondition`, and `_internalInvariant`
9696

9797
These three functions are assertions that will trigger a run time trap if violated.
9898

9999
* `_precondition` executes in all build configurations. Use this for invariant enforcement in all user code build configurations
100100
* `_debugPrecondition` will execute when **user code** is built with assertions enabled. Use this for invariant enforcement that's useful while debugging, but might be prohibitively expensive when user code is configured without assertions.
101-
* `_sanityCheck` will execute when **standard library code** is built with assertions enabled. Use this for internal only invariant checks that useful for debugging the standard library itself.
101+
* `_internalInvariant` will execute when **standard library code** is built with assertions enabled. Use this for internal only invariant checks that useful for debugging the standard library itself.
102102

103103
#### `_fixLifetime`
104104

0 commit comments

Comments
 (0)