Skip to content

Commit d499d55

Browse files
authored
Merge pull request MicrosoftDocs#5077 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main)
2 parents f94ffad + f26dd39 commit d499d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2345.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ align(value) : illegal alignment value
1212

1313
You passed a value to the [align](../../cpp/align-cpp.md) keyword that is outside the allowable range.
1414

15-
The following code generates C2345
15+
The following sample generates C2345:
1616

1717
```cpp
1818
// C2345.cpp
1919
// compile with: /c
20-
__declspec(align(0)) int a; // C2345
21-
__declspec(align(1)) int a; // OK
20+
__declspec(align(8)) int a; // OK
21+
__declspec(align(16384)) int b; // C2345
2222
```

0 commit comments

Comments
 (0)