This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,15 +337,15 @@ impl TargetDataLayout {
337337 Ok ( dl)
338338 }
339339
340- /// Returns **exclusive** upper bound on object size.
340+ /// Returns **exclusive** upper bound on object size in bytes .
341341 ///
342342 /// The theoretical maximum object size is defined as the maximum positive `isize` value.
343343 /// This ensures that the `offset` semantics remain well-defined by allowing it to correctly
344344 /// index every address within an object along with one byte past the end, along with allowing
345345 /// `isize` to store the difference between any two pointers into an object.
346346 ///
347- /// LLVM uses a 64-bit integer to represent object size in bits, but we care only for bytes,
348- /// so we adopt such a more-constrained address space due to its technical limitations.
347+ /// LLVM uses a 64-bit integer to represent object size in * bits* , but we care only for bytes,
348+ /// so we adopt such a more-constrained size bound due to its technical limitations.
349349 #[ inline]
350350 pub fn obj_size_bound ( & self ) -> u64 {
351351 match self . pointer_size . bits ( ) {
You can’t perform that action at this time.
0 commit comments