From 362b67f2bf43981b72c507b207d2087c570921fb Mon Sep 17 00:00:00 2001 From: gammazero <11790789+gammazero@users.noreply.github.com> Date: Thu, 14 Nov 2024 22:35:53 -1000 Subject: [PATCH] Update readme to remove mention of New func --- README.md | 2 +- doc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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