Skip to content

Commit 1b3dc8c

Browse files
committed
Use the ASCII spelling for em dashes.
Minor change to the output: The one em dash in this change that's not part of a comment now appears in the output with a space on both sides, which matches the rest of the book.
1 parent 30eff4d commit 1b3dc8c

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)