diff options
| author | bors <bors@rust-lang.org> | 2013-08-23 04:01:21 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-23 04:01:21 -0700 |
| commit | f5018c5a4c908e5236c59b71df285e0569478c72 (patch) | |
| tree | 24316f03852358613d7b8745d582996fe848196d /src/libstd | |
| parent | ea32d019c4f8da8a1754e9c69a1ba98832c8889c (diff) | |
| parent | 9721732976926d7b3476136ffee68e2f43fb604a (diff) | |
auto merge of #8686 : kmcallister/rust/doc, r=catamorphism
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/cast.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 9d1d6e65901..825d0147c80 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -66,7 +66,10 @@ pub unsafe fn bump_box_refcount<T>(t: @T) { forget(t); } * * # Example * - * assert!(transmute("L") == ~[76u8, 0u8]); + * ~~~ {.rust} + * let v: &[u8] = transmute("L"); + * assert!(v == [76u8]); + * ~~~ */ #[inline] pub unsafe fn transmute<L, G>(thing: L) -> G { |
