Skip to content

Commit

Permalink
Merge pull request #484 from oli-obk/patch-2
Browse files Browse the repository at this point in the history
Update `unsafe` in const functions documentation
  • Loading branch information
Centril committed Dec 23, 2018
2 parents 2a487bd + 9cdf6e8 commit e5751c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ Exhaustive list of permitted structures in const functions:
* Reading from constants (but not statics, not even taking a reference to a static)
* `&` and `*` (only dereferencing of references, not raw pointers)
* Casts except for raw pointer to integer casts
* `const unsafe fn` is allowed, but the body must consist of safe operations
only and you won't be able to call the `const unsafe fn` from within another
const function even if you use `unsafe`
* `unsafe` blocks and `const unsafe fn` are allowed, but the body/block may only do
the following unsafe operations:
* calls to const unsafe functions

## Attributes on functions

Expand Down

0 comments on commit e5751c9

Please sign in to comment.