about summary refs log tree commit diff
path: root/doc/rust.md
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-09-26 10:53:01 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-09-26 16:30:38 -0700
commitd26e2a9ce674150f06edc427edd3837a8950d374 (patch)
treefb5e5ae58602c979d89ff03c2b277ff2a8d24d54 /doc/rust.md
parentfbf362809b89a97512c049ba7e4091ff3d404c58 (diff)
downloadrust-d26e2a9ce674150f06edc427edd3837a8950d374.tar.gz
rust-d26e2a9ce674150f06edc427edd3837a8950d374.zip
Switch a use of `unchecked` to `unsafe`.
Diffstat (limited to 'doc/rust.md')
-rw-r--r--doc/rust.md2
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