• P
    Rollup merge of #55247 - peterjoel:peterjoel-prim-char-doc-example, r=joshtriplett · f740b8a4
    Pietro Albini 提交于
    Clarified code example in char primitive doc
    
    The example was not as clear as it could be because it was making an assumption about the structure of the data in order to multiply the number of elements in the slice by the item size. This change demonstrates the idea more straightforwardly, without needing a calculation, by just comparing the size of the slices.
    f740b8a4
primitive_docs.rs 35.7 KB