Skip to content

Commit 5b6f702

Browse files
cirelli94BillWagner
authored andcommitted
Update null-conditional-operator_1.cs (#3362)
1 parent c2d2164 commit 5b6f702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/csharp/language-reference/operators/codesnippet/CSharp/null-conditional-operator_1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static void Main()
1515
int? x = null;
1616

1717
// Set y to the value of x if x is NOT null; otherwise,
18-
// if x = null, set y to -1.
18+
// if x == null, set y to -1.
1919
int y = x ?? -1;
2020

2121
// Assign i to return value of the method if the method's result
@@ -28,4 +28,4 @@ static void Main()
2828
// display the string "Unspecified".
2929
Console.WriteLine(s ?? "Unspecified");
3030
}
31-
}
31+
}

0 commit comments

Comments
 (0)