Skip to content

Commit b5a8303

Browse files
authored
Fixed typo and added/clarified code comment.
Small typo fix (iff -> if). Added code comment, then modified existing code comment to make the intent of the code clearer.
1 parent ba32ad7 commit b5a8303

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/Index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,13 @@ On macOS, you can use your app’s **Application Support** directory:
288288

289289

290290
```swift
291+
292+
// set the path corresponding to application support.
291293
var path = NSSearchPathForDirectoriesInDomains(
292294
.applicationSupportDirectory, .userDomainMask, true
293295
).first! + "/" + Bundle.main.bundleIdentifier!
294296
295-
// create parent directory iff it doesn’t exist
297+
// create parent directory inside application support if it doesn’t exist
296298
try FileManager.default.createDirectory(
297299
atPath: path, withIntermediateDirectories: true, attributes: nil
298300
)

0 commit comments

Comments
 (0)