diff --git a/README.md b/README.md index b3dab69..979e577 100644 --- a/README.md +++ b/README.md @@ -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] ``` diff --git a/doc.go b/doc.go index 6cfead9..dfff00a 100644 --- a/doc.go +++ b/doc.go @@ -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