Skip to content

Commit 19e238f

Browse files
committed
fix typo in DogHairLenghtComparer
typo in Equals when validating objects on null
1 parent 300ba11 commit 19e238f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/concepts/linq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public class DogHairLengthComparer : IEqualityComparer<Dog>
150150
{
151151
public bool Equals(Dog a, Dog b)
152152
{
153-
if (a == null && a == null)
153+
if (a == null && b == null)
154154
{
155155
return true;
156156
}
@@ -256,4 +256,4 @@ Parallelizable CPU-bound jobs which can be easily expressed via LINQ (in other w
256256

257257
* [101 LINQ Samples](https://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b)
258258
* [Linqpad](https://www.linqpad.net/), a playground environment and Database querying engine for C#/F#/VB
259-
* [EduLinq](http://codeblog.jonskeet.uk/2011/02/23/reimplementing-linq-to-objects-part-45-conclusion-and-list-of-posts/), an e-book for learning how LINQ-to-objects is implemented
259+
* [EduLinq](http://codeblog.jonskeet.uk/2011/02/23/reimplementing-linq-to-objects-part-45-conclusion-and-list-of-posts/), an e-book for learning how LINQ-to-objects is implemented

0 commit comments

Comments
 (0)