Skip to content

Commit 2f09abb

Browse files
authored
Fix typo, refine formatting in EmbeddedSwift/UserManual.md (#79197)
The document should refer to `libswiftUnicodeDataTables.a`, not `libUnicodeDataTables.a`, as the latter doesn't exist.
1 parent b91842b commit 2f09abb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/EmbeddedSwift/UserManual.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ _swift_stdlib_isLinkingConsonant
126126
_swift_stdlib_nfd_decompositions
127127
```
128128

129-
To resolve this, link in the libswiftUnicodeDataTables.a that's in Swift toolchain's resource directory (`lib/swift/`) under the target triple that you're using:
129+
To resolve this, link in the `libswiftUnicodeDataTables.a` that's in Swift toolchain's resource directory (`lib/swift/`) under the target triple that you're using:
130130

131131
```bash
132132
$ swiftc <inputs> -target armv6m-none-none-eabi -enable-experimental-feature Embedded -wmo -c -o output.o
@@ -138,17 +138,17 @@ $ ld ... -o binary output.o $(dirname `which swiftc`)/../lib/swift/embedded/armv
138138
- Comparing String objects for equality
139139
- Sorting Strings
140140
- Using String's hash values, and in particular using String as dictionary keys
141-
- Using String's .count property
142-
- Using Unicode-aware string processing APIs (.split(), iterating characters, indexing)
143-
- Using Unicode-aware conversion String APIs (.uppercased(), .lowercased(), etc.)
141+
- Using String's `.count` property
142+
- Using Unicode-aware string processing APIs (`.split()`, iterating characters, indexing)
143+
- Using Unicode-aware conversion String APIs (`.uppercased()`, `.lowercased()`, etc.)
144144

145145
**For contrast, unicode data tables are *not required for* (list not exhaustive):**
146146

147147
- Using StaticString
148148
- Creating, concatenating, string interpolating, and printing String objects
149-
- Using .utf8, .utf16, and .unicodeScalars views of strings, including their .count property, using them as dictionary keys
149+
- Using `.utf8`, `.utf16`, and `.unicodeScalars` views of strings, including their .count property, using them as dictionary keys
150150

151-
Manually linking libUnicodeDataTables.a is required for several reasons, including acknowledging that the data tables are desirable: Since they have a non-negligible size, it's useful to be aware that you are using them.
151+
Manually linking `libswiftUnicodeDataTables.a` is required for several reasons, including acknowledging that the data tables are desirable: Since they have a non-negligible size, it's useful to be aware that you are using them.
152152

153153
## Conditionalizing compilation for Embedded Swift
154154

0 commit comments

Comments
 (0)