Skip to content

Commit 018415f

Browse files
authored
Fix field name minimumBalance to _minimumBalance (dotnet#31771)
1 parent a9310ba commit 018415f

File tree

1 file changed

+1
-1
lines changed
  • docs/csharp/fundamentals/tutorials

1 file changed

+1
-1
lines changed

docs/csharp/fundamentals/tutorials/oop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public void MakeWithdrawal(decimal amount, DateTime date, string note)
152152
{
153153
throw new ArgumentOutOfRangeException(nameof(amount), "Amount of withdrawal must be positive");
154154
}
155-
if (Balance - amount < minimumBalance)
155+
if (Balance - amount < _minimumBalance)
156156
{
157157
throw new InvalidOperationException("Not sufficient funds for this withdrawal");
158158
}

0 commit comments

Comments
 (0)