Skip to content

Commit

Permalink
auto merge of #8686 : kmcallister/rust/doc, r=catamorphism
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Aug 23, 2013
2 parents ea32d01 + 9721732 commit f5018c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstd/cast.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit f5018c5

Please sign in to comment.