@@ -4299,7 +4299,7 @@ comptime {
42994299 Asserts that {#syntax#}@sizeOf(@TypeOf(value)) == @sizeOf(DestType){#endsyntax#}.
43004300 </p>
43014301 <p>
4302- Asserts that {#syntax#}@typeInfo(DestType) != .Pointer {#endsyntax#}. Use {#syntax#}@ptrCast{#endsyntax#} or {#syntax#}@ptrFromInt{#endsyntax#} if you need this.
4302+ Asserts that {#syntax#}@typeInfo(DestType) != .pointer {#endsyntax#}. Use {#syntax#}@ptrCast{#endsyntax#} or {#syntax#}@ptrFromInt{#endsyntax#} if you need this.
43034303 </p>
43044304 <p>
43054305 Can be used for these things for example:
@@ -4517,7 +4517,7 @@ comptime {
45174517 {#syntax#}T{#endsyntax#} must be a pointer, a {#syntax#}bool{#endsyntax#}, a float,
45184518 an integer or an enum.
45194519 </p>
4520- <p>{#syntax#}@typeInfo(@TypeOf(ptr)).Pointer .alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
4520+ <p>{#syntax#}@typeInfo(@TypeOf(ptr)).pointer .alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
45214521 <p>{#syntax#}AtomicOrder{#endsyntax#} can be found with {#syntax#}@import("std").builtin.AtomicOrder{#endsyntax#}.</p>
45224522 {#see_also|@atomicStore|@atomicLoad|@atomicRmw|@fence|@cmpxchgWeak#}
45234523 {#header_close#}
@@ -4549,7 +4549,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
45494549 {#syntax#}T{#endsyntax#} must be a pointer, a {#syntax#}bool{#endsyntax#}, a float,
45504550 an integer or an enum.
45514551 </p>
4552- <p>{#syntax#}@typeInfo(@TypeOf(ptr)).Pointer .alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
4552+ <p>{#syntax#}@typeInfo(@TypeOf(ptr)).pointer .alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
45534553 <p>{#syntax#}AtomicOrder{#endsyntax#} can be found with {#syntax#}@import("std").builtin.AtomicOrder{#endsyntax#}.</p>
45544554 {#see_also|@atomicStore|@atomicLoad|@atomicRmw|@fence|@cmpxchgStrong#}
45554555 {#header_close#}
@@ -4672,7 +4672,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
46724672 <p>
46734673 Floored division. Rounds toward negative infinity. For unsigned integers it is
46744674 the same as {#syntax#}numerator / denominator{#endsyntax#}. Caller guarantees {#syntax#}denominator != 0{#endsyntax#} and
4675- {#syntax#}!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1){#endsyntax#}.
4675+ {#syntax#}!(@typeInfo(T) == .int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1){#endsyntax#}.
46764676 </p>
46774677 <ul>
46784678 <li>{#syntax#}@divFloor(-5, 3) == -2{#endsyntax#}</li>
@@ -4686,7 +4686,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
46864686 <p>
46874687 Truncated division. Rounds toward zero. For unsigned integers it is
46884688 the same as {#syntax#}numerator / denominator{#endsyntax#}. Caller guarantees {#syntax#}denominator != 0{#endsyntax#} and
4689- {#syntax#}!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1){#endsyntax#}.
4689+ {#syntax#}!(@typeInfo(T) == .int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1){#endsyntax#}.
46904690 </p>
46914691 <ul>
46924692 <li>{#syntax#}@divTrunc(-5, 3) == -1{#endsyntax#}</li>
@@ -5320,8 +5320,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
53205320 any bits that disagree with the resultant sign bit are shifted out.
53215321 </p>
53225322 <p>
5323- The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int .bits){#endsyntax#} bits.
5324- This is because {#syntax#}shift_amt >= @typeInfo(T).Int .bits{#endsyntax#} is undefined behavior.
5323+ The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).int .bits){#endsyntax#} bits.
5324+ This is because {#syntax#}shift_amt >= @typeInfo(T).int .bits{#endsyntax#} is undefined behavior.
53255325 </p>
53265326 <p>
53275327 {#syntax#}comptime_int{#endsyntax#} is modeled as an integer with an infinite number of bits,
@@ -5337,8 +5337,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
53375337 Performs {#syntax#}a << b{#endsyntax#} and returns a tuple with the result and a possible overflow bit.
53385338 </p>
53395339 <p>
5340- The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(@TypeOf(a)).Int .bits){#endsyntax#} bits.
5341- This is because {#syntax#}shift_amt >= @typeInfo(@TypeOf(a)).Int .bits{#endsyntax#} is undefined behavior.
5340+ The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(@TypeOf(a)).int .bits){#endsyntax#} bits.
5341+ This is because {#syntax#}shift_amt >= @typeInfo(@TypeOf(a)).int .bits{#endsyntax#} is undefined behavior.
53425342 </p>
53435343 {#see_also|@shlExact|@shrExact#}
53445344 {#header_close#}
@@ -5350,8 +5350,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
53505350 that the shift will not shift any 1 bits out.
53515351 </p>
53525352 <p>
5353- The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int .bits){#endsyntax#} bits.
5354- This is because {#syntax#}shift_amt >= @typeInfo(T).Int .bits{#endsyntax#} is undefined behavior.
5353+ The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).int .bits){#endsyntax#} bits.
5354+ This is because {#syntax#}shift_amt >= @typeInfo(T).int .bits{#endsyntax#} is undefined behavior.
53555355 </p>
53565356 {#see_also|@shlExact|@shlWithOverflow#}
53575357 {#header_close#}
@@ -5405,7 +5405,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
54055405 This size may contain padding bytes. If there were two consecutive T in memory, the padding would be the offset
54065406 in bytes between element at index 0 and the element at index 1. For {#link|integer|Integers#},
54075407 consider whether you want to use {#syntax#}@sizeOf(T){#endsyntax#} or
5408- {#syntax#}@typeInfo(T).Int .bits{#endsyntax#}.
5408+ {#syntax#}@typeInfo(T).int .bits{#endsyntax#}.
54095409 </p>
54105410 <p>
54115411 This function measures the size at runtime. For types that are disallowed at runtime, such as
0 commit comments