Bug 1435382 - fix documentation for AlignedElem; r=me
authorNathan Froyd <froydnj@mozilla.com>
Fri, 02 Feb 2018 15:24:51 -0500
changeset 402311 6403f24bc3b68aa9a2c5819a3b107e4d02549a79
parent 402310 679f0b767fc68047fef60ad8339565b8e11f6cef
child 402312 5616e5860bfe59a43f102bb6ebf066d96abb78d6
push id33377
push usernerli@mozilla.com
push dateSat, 03 Feb 2018 09:53:15 +0000
treeherdermozilla-central@92b6195a9367 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1435382
milestone60.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 1435382 - fix documentation for AlignedElem; r=me Sub-byte alignment isn't really a thing. DONTBUILD because documentation fixes are always safe, amirite?
mfbt/Alignment.h
--- a/mfbt/Alignment.h
+++ b/mfbt/Alignment.h
@@ -74,17 +74,17 @@ struct AlignasHelper
 #  warning "We don't know how to align variables on this compiler."
 #  define MOZ_ALIGNED_DECL(_type, _align) _type
 #endif
 
 /*
  * AlignedElem<N> is a structure whose alignment is guaranteed to be at least N
  * bytes.
  *
- * We support 1, 2, 4, 8, and 16-bit alignment.
+ * We support 1, 2, 4, 8, and 16-byte alignment.
  */
 template<size_t Align>
 struct AlignedElem;
 
 /*
  * We have to specialize this template because GCC doesn't like
  * __attribute__((aligned(foo))) where foo is a template parameter.
  */