Skip to content

Commit

Permalink
Docs: Fix alwaysMapped option usage in README (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluk authored and Andrew-Lees11 committed May 7, 2019
1 parent 5925444 commit a2a88e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ This will create a public and private key pair on your system, and the contents

```swift
let privateKeyPath = URL(fileURLWithPath: getAbsolutePath(relativePath: "/path/to/privateKey.key"))
let privateKey: Data = try Data(contentsOf: privateKeyPath, options: alwaysMapped)
let privateKey: Data = try Data(contentsOf: privateKeyPath, options: .alwaysMapped)
let publicKeyPath = URL(fileURLWithPath: getAbsolutePath(relativePath: "/path/to/publicKey.key"))
let publicKey: Data = try Data(contentsOf: publicKeyPath, options: alwaysMapped)
let publicKey: Data = try Data(contentsOf: publicKeyPath, options: .alwaysMapped)
```

For details on creating elliptic curve public and private keys, view the [BlueECC README.txt](https://github.com/IBM-Swift/BlueECC).
Expand Down

0 comments on commit a2a88e9

Please sign in to comment.