Skip to content

Commit

Permalink
Fix syntax error in docs
Browse files Browse the repository at this point in the history
use forEach over each
  • Loading branch information
maxwellE authored Apr 27, 2022
1 parent 668509f commit 662675b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ We the project already in memory, we are going to output all the targets that ar

```swift
let pbxproj = xcodeproj.pbxproj // Returns a PBXProj
pbxproj.nativeTargets.each { target in
pbxproj.nativeTargets.forEach { target in
print(target.name)
}
```
Expand Down Expand Up @@ -104,4 +104,4 @@ try xcodeproj.write(path: path)

If something goes wrong during the project writing, `write` will throw an error. In most cases, writing issues are related to misconfigured projects. For that reason it's important that you understand the modifications that we are introducing to your projects.

**Bear in mind that xcodeproj makes the process of configuring Xcode project more convenient, but doesn't prevent you from having to read and understand the Xcode project structure**
**Bear in mind that xcodeproj makes the process of configuring Xcode project more convenient, but doesn't prevent you from having to read and understand the Xcode project structure**

0 comments on commit 662675b

Please sign in to comment.