Skip to content

Commit

Permalink
Update readme to remove mention of New func
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Nov 15, 2024
1 parent f0435ef commit 362b67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Since it is OK for the deque to contain a `nil` value, it is necessary to either

Deque uses generics to create a Deque that contains items of the type specified. To create a Deque that holds a specific type, provide a type argument to New or with the variable declaration. For example:
```go
stringDeque := deque.New[string]()
stringDeque := new(deque.New[string])
var intDeque deque.Deque[int]
```

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ Deque.Len() before reading from the deque.
Deque uses generics to create a Deque that contains items of the type
specified. To create a Deque that holds a specific type, provide a type
argument to New or with the variable declaration.
argument with the Deque variable declaration.
*/
package deque

0 comments on commit 362b67f

Please sign in to comment.