auto merge of #8686 : kmcallister/rust/doc, r=catamorphism
This commit is contained in:
commit
f5018c5a4c
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue