doc: Fix transmute example
auto merge of #8686 : kmcallister/rust/doc, r=catamorphism