From: Anton Vasiliev Date: Tue, 24 Mar 2020 12:48:04 +0000 (+0300) Subject: Fix incorrect comment in Queue.Dequeue (#34006) X-Git-Tag: submit/tizen/20210909.063632~8997 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8880e309857873a38bc2aa8c09060dbedd5a29c6;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix incorrect comment in Queue.Dequeue (#34006) The comment in front of System.Collections.Queue.Dequeue() changed to match actual routine behavior. --- diff --git a/src/libraries/System.Collections.NonGeneric/src/System/Collections/Queue.cs b/src/libraries/System.Collections.NonGeneric/src/System/Collections/Queue.cs index 5dbb967..890d83e 100644 --- a/src/libraries/System.Collections.NonGeneric/src/System/Collections/Queue.cs +++ b/src/libraries/System.Collections.NonGeneric/src/System/Collections/Queue.cs @@ -182,7 +182,7 @@ namespace System.Collections } // Removes the object at the head of the queue and returns it. If the queue - // is empty, this method simply returns null. + // is empty, this method throws an InvalidOperationException. public virtual object? Dequeue() { if (Count == 0)