回答編集履歴
1
誤りを修正
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
// 各name.descriptionプロパティを改行で連結
|
32
32
|
|
33
|
-
let descriptions = items.name.description.joined(separator: "\n")
|
33
|
+
let descriptions = items.map { $0.name.description }.joined(separator: "\n")
|
34
34
|
|
35
35
|
```
|
36
36
|
|
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
// 上の保存データの生成は、まとまりとしてはここに書いた方が読みやすい
|
48
48
|
|
49
|
-
let descriptions = items.name.description.joined(separator: "\n")
|
49
|
+
let descriptions = items.map { $0.name.description }.joined(separator: "\n")
|
50
50
|
|
51
51
|
|
52
52
|
|