about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-25 14:31:07 +0200
committerGitHub <noreply@github.com>2018-10-25 14:31:07 +0200
commitf740b8a4de449ff4aa1c7ca9c7fda53a4ee5d313 (patch)
tree7a41ea2e428a3a990026cdef1fe2fde938ed3fe0 /src/rustllvm/RustWrapper.cpp
parentc4e51a2c5240073677e00d6f5c7340221d5acfc3 (diff)
parent0f6e2741f692add6d1995b630e2073d18aa2b2ba (diff)
downloadrust-f740b8a4de449ff4aa1c7ca9c7fda53a4ee5d313.tar.gz
rust-f740b8a4de449ff4aa1c7ca9c7fda53a4ee5d313.zip
Rollup merge of #55247 - peterjoel:peterjoel-prim-char-doc-example, r=joshtriplett
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions