Skip to content

Commit 25f4455

Browse files
authored
Merge pull request #3116 from apple/stdlib-fix-int-docs
2 parents f72bd54 + d7a4e97 commit 25f4455

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/public/core/FixedPoint.swift.gyb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,15 @@ T : UnsignedInteger, U : _SignedInteger
203203
% OtherSelf = self_ty.get_opposite_signedness().stdlib_name
204204
% Article = 'An' if bits == 8 else 'A'
205205

206+
% if self_ty.is_word:
207+
/// ${'An un' if sign == 'u' else 'A '}signed integer value type.
208+
///
209+
/// On 32-bit platforms, `${Self}` is the same size as `${Self}32`, and
210+
/// on 64-bit platforms, `${Self}` is the same size as `${Self}64`.
211+
% else:
206212
/// ${Article} ${bits}-bit ${'un' if sign == 'u' else ''}signed integer value
207213
/// type.
214+
% end
208215
@_fixed_layout
209216
public struct ${Self}
210217
: ${'SignedInteger' if sign == 's' else 'UnsignedInteger'},

0 commit comments

Comments
 (0)