示例工程 03-strings-unicode

另有 1 个文件未随站点发布(平台工程、二进制或超过 200KB)。

03-strings-unicode/Diagnostics/README.md

markdown · 0.3 KB

# Diagnostics
 
两个文件**故意编译失败**,用来复现第 03 章「报错现场」的真实诊断。
 
```bash
swiftc Diagnostics/IntIndex.swift    # error: subscript(_:) is unavailable
swiftc Diagnostics/IndexAsInt.swift  # error: cannot convert value of type 'String.Index'
```