Skip to content

Commit

Permalink
update doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jackspirou committed Oct 2, 2024
1 parent d63a3ad commit 477165a
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 @@ -74,7 +74,7 @@ fmt.Println("Generated default public ID:", id)
3. Generate a long public ID (12 characters):
```go
longID, _ := publicid.New(publicid.Long())
longID, _ := publicid.New(publicid.Long)
fmt.Println("Generated long public ID:", longID)
// Output: Generated long public ID: 7Zt3xY9pQr5W
```
Expand Down Expand Up @@ -104,7 +104,7 @@ if err != nil {
```go
longID := "7Zt3xY9pQr5W"
err := publicid.Validate(longID, publicid.Long())
err := publicid.Validate(longID, publicid.Long)
if err != nil {
fmt.Println("Invalid long ID:", err)
} else {
Expand Down

0 comments on commit 477165a

Please sign in to comment.