Skip to content

Commit 1cb5103

Browse files
committed
Update SA1011 documentation for function pointers
1 parent ff14d11 commit 1cb5103

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

documentation/SA1011.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ A closing square bracket should be followed by whitespace unless:
3434
* It is followed by certain types of operator symbols
3535
* It is followed by a nullable reference type annotation for arrays (for example, `string[]? items`)
3636
* It is followed by the null-forgiving operator applied to an array or element access (for example, `values[0]!`)
37+
* It is immediately followed by a `<` in an unmanaged calling convention list for a function pointer, for example `delegate* unmanaged[Cdecl]<void>`
3738

3839
## How to fix violations
3940

0 commit comments

Comments
 (0)