Skip to content

Commit

Permalink
Modify usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yukanamori committed Mar 9, 2024
1 parent 579328d commit 362a5b1
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 @@ -25,15 +25,15 @@ dependencies: [
## Usage

```swift
import Foundation
import RandomPasswordGenerator

// Create a new password generator
let generator = RandomPasswordGenerator(length: 10, characterTypes: [.digits, .uppercase, .lowercase])

do {
// Generate a random password
let password = try generator.generate()
print(password)
print(password) // For example: "A3b7G9k2L1"
} catch {
print("An error occurred: \(error)")
}
Expand Down

0 comments on commit 362a5b1

Please sign in to comment.