mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 06:47:34 +00:00
auto merge of #8686 : kmcallister/rust/doc, r=catamorphism
This commit is contained in:
commit
f5018c5a4c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user