Skip to content

Commit 8fc5cf1

Browse files
Updated C28213
Acrolinx fixes
1 parent c3f3e85 commit 8fc5cf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/code-quality/c28213.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ ms.assetid: e141a12a-4c46-47eb-aa9d-a6444472cfaa
1313
1414
## Remarks
1515

16-
`_Use_decl_annotations_` tells the compiler to use the annotations from an earlier declaration of the function. If no earlier declaration can be found, or if the current declaration makes changes to the annotations than this warning is emitted.
16+
`_Use_decl_annotations_` tells the compiler to use the annotations from an earlier declaration of the function. If no earlier declaration can be found, or if the current declaration makes changes to the annotations, then this warning is emitted.
1717

1818
Code analysis name: BAD_USEHEADER
1919

2020
## Example
2121

22-
The following code generates C28160. The `buffer` parameter annotation does not match between the two files.
22+
The following code generates C28160. The `buffer` parameter annotation doesn't match between the two files.
2323

2424
*From example.h:*
2525

@@ -37,7 +37,7 @@ void example_func(_Out_writes_z_(n) char* buffer, int n)
3737
}
3838
```
3939

40-
This can be fixed by either changing the annotation so they match at all locations, or by removing all annotations except `_Use_decl_annotations_` from the function definition. In this example, `_Out_writes_z_` appears to be correct so we will move that to the function declaration in the header file. The following code resolves this warning:
40+
This issue can be fixed by either changing the annotation so they match at all locations, or by removing all annotations except `_Use_decl_annotations_` from the function definition. In this example, `_Out_writes_z_` appears to be correct so we'll move that to the function declaration in the header file. The following code resolves this warning:
4141

4242
*From example.h:*
4343

0 commit comments

Comments
 (0)