Skip to content

Commit

Permalink
doc: Fix transmute example
Browse files Browse the repository at this point in the history
  • Loading branch information
Keegan McAllister committed Aug 22, 2013
1 parent 5003f60 commit 9721732
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

5 comments on commit 9721732

@bors
Copy link
Contributor

@bors bors commented on 9721732 Aug 23, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from catamorphism
at kmcallister@9721732

@bors
Copy link
Contributor

@bors bors commented on 9721732 Aug 23, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kmcallister/rust/doc = 9721732 into auto

@bors
Copy link
Contributor

@bors bors commented on 9721732 Aug 23, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kmcallister/rust/doc = 9721732 merged ok, testing candidate = f5018c5

@bors
Copy link
Contributor

@bors bors commented on 9721732 Aug 23, 2013

@bors
Copy link
Contributor

@bors bors commented on 9721732 Aug 23, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = f5018c5

Please sign in to comment.