Skip to content

Commit

Permalink
Fix method numbering in Memory-model.md example code (dotnet#105168)
Browse files Browse the repository at this point in the history
Comments are numbering ThreadFuncs as 1,2,3 while method names are ThreadFunc1, ThreadFunc1, ThreadFunc2.
  • Loading branch information
ThorstenReichert committed Jul 21, 2024
1 parent a55a21f commit 7e273c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/design/specs/Memory-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void ThreadFunc1()
}

// thread #2
void ThreadFunc1()
void ThreadFunc2()
{
while (true)
{
Expand All @@ -197,7 +197,7 @@ void ThreadFunc1()
}

// thread #3
void ThreadFunc2()
void ThreadFunc3()
{
MyClass localObj = obj;
if (localObj != null)
Expand Down

0 comments on commit 7e273c6

Please sign in to comment.