]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #96639 - adpaco-aws:fix-offset-from-typo, r=scottmcm
authorMichael Goulet <michael@errs.io>
Fri, 6 May 2022 02:34:23 +0000 (19:34 -0700)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 02:34:23 +0000 (19:34 -0700)
commitef949daf036b77795ee03c4ec470713ddd18ff07
tree98f6ba958de6566daab2bdbfe95e5940cfee07aa
parent87ad928c1598116b104525f2efc29198e39e42c7
parent9b36a4783101c86a7b6597804e59dae076459653
Rollup merge of #96639 - adpaco-aws:fix-offset-from-typo, r=scottmcm

Fix typo in `offset_from` documentation

Small fix for what I think is a typo in the `offset_from` documentation.

Someone reading this may understand that the distance in bytes is obtained by dividing the distance by `mem::size_of::<T>()`, but here we just want to define "units of T" in terms of bytes (i.e., units of T == bytes / `mem::size_of::<T>()`).