diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-09-26 10:53:01 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-26 16:30:38 -0700 |
| commit | d26e2a9ce674150f06edc427edd3837a8950d374 (patch) | |
| tree | fb5e5ae58602c979d89ff03c2b277ff2a8d24d54 /doc/rust.md | |
| parent | fbf362809b89a97512c049ba7e4091ff3d404c58 (diff) | |
| download | rust-d26e2a9ce674150f06edc427edd3837a8950d374.tar.gz rust-d26e2a9ce674150f06edc427edd3837a8950d374.zip | |
Switch a use of `unchecked` to `unsafe`.
Diffstat (limited to 'doc/rust.md')
| -rw-r--r-- | doc/rust.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rust.md b/doc/rust.md index c56c796dbef..5d22379bfe9 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1001,7 +1001,7 @@ pure fn pure_length<T>(ls: List<T>) -> uint { Despite its name, `pure_foldl` is a `fn`, not a `pure fn`, because there is no way in Rust to specify that the higher-order function argument `f` is a pure function. So, to use `foldl` in a pure list length function that a pure function -could then use, we must use an `unchecked` block wrapped around the call to +could then use, we must use an `unsafe` block wrapped around the call to `pure_foldl` in the definition of `pure_length`. #### Generic functions |
