Skip to content

Commit 8f62897

Browse files
committed
Add per-architecture availability note.
The documentation publication pipeline doesn't have a way to expose per-architecture availability, like how it it shows per-platform availability. So add this in prose instead. Fixes <rdar://77649895>
1 parent e46a285 commit 8f62897

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ def Availability(bits):
4141

4242
if Self == 'Float16':
4343
SelfDocComment = '''\
44-
/// A half-precision (16b), floating-point value type.'''
45-
44+
/// A half-precision (16b), floating-point value type.
45+
///
46+
/// `Float16` is available on Apple silicon, and unavailable on Intel.'''
4647
elif Self == 'Float':
4748
SelfDocComment = '''\
4849
/// A single-precision, floating-point value type.'''
@@ -53,7 +54,9 @@ elif Self == 'Double':
5354

5455
elif Self == 'Float80':
5556
SelfDocComment = '''\
56-
/// An extended-precision, floating-point value type.'''
57+
/// An extended-precision, floating-point value type.
58+
///
59+
/// `Float80` is available on Intel, and unavailable on Apple silicon.'''
5760

5861
else:
5962
raise ValueError('Unhandled float type.')

0 commit comments

Comments
 (0)