Bug 1339218 - Comment wording fixup, r=me
authorMichael Layzell <michael@thelayzells.com>
Wed, 15 Feb 2017 12:10:46 -0500
changeset 343112 7045bd028af07881543111c6ac822d5f13882cfd
parent 343111 7ecbacf4e84c972da2977dbc3eb924297dd0b636
child 343113 47e3f088c240f1a1ea816bdfa75603b36b9c9995
push id31369
push userkwierso@gmail.com
push dateThu, 16 Feb 2017 00:18:40 +0000
treeherdermozilla-central@e9b926463f9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1339218
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1339218 - Comment wording fixup, r=me MozReview-Commit-ID: 8T0ibqe17Ru
xpcom/rust/nsstring/src/lib.rs
--- a/xpcom/rust/nsstring/src/lib.rs
+++ b/xpcom/rust/nsstring/src/lib.rs
@@ -839,17 +839,17 @@ pub mod test_helpers {
         ($T:ty, $U:ty, $member:ident, $method:ident) => {
             #[no_mangle]
             #[allow(non_snake_case)]
             pub extern fn $method(size: *mut usize,
                                   align: *mut usize,
                                   offset: *mut usize) {
                 unsafe {
                     // Create a temporary value of type T to get offsets, sizes
-                    // and aligns off of
+                    // and alignments from.
                     let tmp: $T = mem::zeroed();
                     *size = mem::size_of_val(&tmp.$member);
                     *align = mem::align_of_val(&tmp.$member);
                     *offset =
                         (&tmp.$member as *const _ as usize) -
                         (&tmp as *const _ as usize);
                     mem::forget(tmp);