File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,15 +337,15 @@ impl TargetDataLayout {
337
337
Ok ( dl)
338
338
}
339
339
340
- /// Returns **exclusive** upper bound on object size.
340
+ /// Returns **exclusive** upper bound on object size in bytes .
341
341
///
342
342
/// The theoretical maximum object size is defined as the maximum positive `isize` value.
343
343
/// This ensures that the `offset` semantics remain well-defined by allowing it to correctly
344
344
/// index every address within an object along with one byte past the end, along with allowing
345
345
/// `isize` to store the difference between any two pointers into an object.
346
346
///
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.
349
349
#[ inline]
350
350
pub fn obj_size_bound ( & self ) -> u64 {
351
351
match self . pointer_size . bits ( ) {
You can’t perform that action at this time.
0 commit comments