Skip to content

Commit f8d0ae9

Browse files
committed
address review
1 parent b7363fc commit f8d0ae9

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

welcome-to-swift/a-swift-tour.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ Task {
679679
// Hello Guest, user ID 97
680680
```
681681

682-
平行コードを構造化するために、タスクグループ\(_task group_\)を使います。
682+
同時並行コードを構造化するために、タスクグループ\(_task group_\)を使います。
683683

684684
```swift
685685
let userIDs = await withTaskGroup(of: Int.self) { taskGroup in
@@ -712,20 +712,6 @@ actor ServerConnection {
712712
}
713713
```
714714

715-
<!--
716-
- test: `guided-tour`
717-
```swifttest
718-
-> actor Oven {
719-
var contents: [String] = []
720-
func bake(_ food: String) -> String {
721-
contents.append(food)
722-
// ... wait for food to bake ...
723-
return contents.removeLast()
724-
}
725-
}
726-
```
727-
-->
728-
729715
アクターのメソッドを呼び出す、もしくはそのプロパティの 1 つにアクセスする時に、
730716
そのアクター上で実行している他のコードが完了するのを待つことを示すために `await` をつける必要があります。
731717

@@ -734,14 +720,6 @@ let server = ServerConnection()
734720
let userID = await server.connect()
735721
```
736722

737-
<!--
738-
- test: `guided-tour`
739-
```swifttest
740-
-> let oven = Oven()
741-
-> let biscuits = await oven.bake("biscuits")
742-
```
743-
-->
744-
745723
## プロトコルと拡張\(Protocols and Extensions\)
746724

747725
プロトコルを宣言するために `protocol` を使います。

0 commit comments

Comments
 (0)