Skip to content

Commit ab7377b

Browse files
authored
Merge pull request #5147 from winstliu/26135-correct-warning-annotation-comment
C26135: Update comments to use correct annotation
2 parents 26b4564 + 2b20c4c commit ab7377b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-quality/c26135.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ typedef struct _DATA
2525
void MyEnter(DATA* p)
2626
{
2727
// Warning C26135:
28-
// Missing side effect annotation _Acquires_lock_(&p->cs)
28+
// Missing side effect annotation _Acquires_lock_(p->cs)
2929
EnterCriticalSection(&p->cs);
3030
}
3131

3232
void MyLeave(DATA* p)
3333
{
3434
// warning C26135:
35-
// Missing side effect annotation _Releases_lock_(&p->cs)
35+
// Missing side effect annotation _Releases_lock_(p->cs)
3636
LeaveCriticalSection(&p->cs);
3737
}
3838
```

0 commit comments

Comments
 (0)