Skip to content

Commit 9cdf6e8

Browse files
authored
Update functions.md
1 parent e511587 commit 9cdf6e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/items/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ Exhaustive list of permitted structures in const functions:
185185
* Reading from constants (but not statics, not even taking a reference to a static)
186186
* `&` and `*` (only dereferencing of references, not raw pointers)
187187
* Casts except for raw pointer to integer casts
188-
* `unsafe` blocks and `const unsafe fn` is allowed, but the body/block must consist
189-
of safe operations or calls to other const functions only. Further unsafe operations
190-
may get allowed in const functions in the future.
188+
* `unsafe` blocks and `const unsafe fn` are allowed, but the body/block may only do
189+
the following unsafe operations:
190+
* calls to const unsafe functions
191191

192192
## Attributes on functions
193193

0 commit comments

Comments
 (0)