Skip to content

Commit 3d73694

Browse files
authored
Fix straggler Unicode em dashes to use ASCII spelling (#183)
The one in "Strings and Characters" must have been missed in a past clean-up. The one in "Macros" in a comment was probably leftover from my outlining process.
2 parents 30eff4d + 1b3dc8c commit 3d73694

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TSPL.docc/LanguageGuide/Macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ https://github.com/apple/swift-syntax/blob/main/Sources/SwiftSyntaxBuilder/Synta
615615
+ Find a node's location in source
616616
617617
- Macro expansion happens in their surrounding context.
618-
A macro can affect that environment if it needs to
618+
A macro can affect that environment if it needs to ---
619619
and a macro that has bugs can interfere with that environment.
620620
(Give guidance on when you'd do this. It should be rare.)
621621

TSPL.docc/LanguageGuide/StringsAndCharacters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,8 @@ print("the number of characters in \(word) is \(word.count)")
947947
-->
948948

949949
> Note: Extended grapheme clusters can be composed of multiple Unicode scalars.
950-
> This means that different characters
951-
> and different representations of the same character
950+
> This means that different characters ---
951+
> and different representations of the same character ---
952952
> can require different amounts of memory to store.
953953
> Because of this, characters in Swift don't each take up
954954
> the same amount of memory within a string's representation.

0 commit comments

Comments
 (0)