Skip to content

Commit 68be792

Browse files
authored
Merge pull request #14830 from graydon/typo-fix-plaform-platform
2 parents 9d80d32 + 111674a commit 68be792

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ WARNING(unknown_platform_condition_argument,none,
15211521
"unknown %0 for build configuration '%1'",
15221522
(StringRef, StringRef))
15231523
WARNING(likely_simulator_platform_condition,none,
1524-
"plaform condition appears to be testing for simulator environment; "
1524+
"platform condition appears to be testing for simulator environment; "
15251525
"use 'targetEnvironment(simulator)' instead",
15261526
())
15271527

test/Parse/ConditionalCompilation/simulatorTargetEnv.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ var x = C()
1414
var y = x
1515

1616
#if os(iOS) && arch(i386)
17-
// expected-warning @-1 {{plaform condition appears to be testing for simulator environment}} {{5-26=targetEnvironment(simulator)}}
17+
// expected-warning @-1 {{platform condition appears to be testing for simulator environment}} {{5-26=targetEnvironment(simulator)}}
1818
class C1 {}
1919
#endif
2020

2121
#if arch(i386) && os(iOS)
22-
// expected-warning @-1 {{plaform condition appears to be testing for simulator environment}} {{5-26=targetEnvironment(simulator)}}
22+
// expected-warning @-1 {{platform condition appears to be testing for simulator environment}} {{5-26=targetEnvironment(simulator)}}
2323
class C2 {}
2424
#endif
2525

2626
#if arch(i386) && (os(iOS) || os(watchOS))
27-
// expected-warning @-1 {{plaform condition appears to be testing for simulator environment}} {{5-43=targetEnvironment(simulator)}}
27+
// expected-warning @-1 {{platform condition appears to be testing for simulator environment}} {{5-43=targetEnvironment(simulator)}}
2828
class C3 {}
2929
#endif
3030

3131
#if (arch(x86_64) || arch(i386)) && (os(iOS) || os(watchOS) || os(tvOS))
32-
// expected-warning @-1 {{plaform condition appears to be testing for simulator environment}} {{5-73=targetEnvironment(simulator)}}
32+
// expected-warning @-1 {{platform condition appears to be testing for simulator environment}} {{5-73=targetEnvironment(simulator)}}
3333
class C4 {}
3434
#endif
3535

3636
#if !(arch(x86_64) && os(tvOS))
37-
// expected-warning @-1 {{plaform condition appears to be testing for simulator environment}} {{7-31=targetEnvironment(simulator)}}
37+
// expected-warning @-1 {{platform condition appears to be testing for simulator environment}} {{7-31=targetEnvironment(simulator)}}
3838
class C5 {}
3939
#endif

utils/gen-static-stdlib-link-args

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#
44
# Generate the static-stdlib-args.lnk used by the -static-stdlib option for
5-
# 'GenericUnix' (eg linux) plaforms. Tries to find static .a files for libs
5+
# 'GenericUnix' (eg linux) platforms. Tries to find static .a files for libs
66
# not normally installed by default (currently libicu)
77
# If libicu is built locally then include libicudata
88
#

0 commit comments

Comments
 (0)