Auto merge of #1004 - canndrew:fix-size_of, r=alexcrichton

fix size_of function in dox.rs

I'm assuming this is meant to have the same signature as the one in core/std