]> git.lizzy.rs Git - rust.git/commit
Add explanation for (copy, clone)_from_slice
authorAnirudh Balaji <anirudhb@users.noreply.github.com>
Fri, 22 Jun 2018 07:20:51 +0000 (00:20 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Jun 2018 07:20:51 +0000 (00:20 -0700)
commit4eca24700be4cf9f1fad3e7674e4849f4de234a1
treefd87e6f031012188d42704761a484453fdd2a744
parent4b17d31f1147f840231c43b1ac1478a497af20df
Add explanation for (copy, clone)_from_slice

It elaborates over why we have to slice the 4-size src to 2-size (same as dst).
src/libcore/slice/mod.rs