Skip to content

Commit aeec1c4

Browse files
Merge pull request MicrosoftDocs#4547 from corob-msft/docs/corob/cpp-docs-4186
Address cpp-docs 4186 code labels
2 parents 945ec0d + 15007ce commit aeec1c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/cpp/const-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: const (C++)"
33
title: "const (C++)"
4-
ms.date: 02/03/2022
4+
ms.date: 09/27/2022
55
f1_keywords: ["const_cpp"]
66
helpviewer_keywords: ["const keyword [C++]"]
77
ms.assetid: b21c0271-1ad0-40a0-b21c-5e812bba0318
@@ -149,13 +149,13 @@ int main()
149149
150150
When you declare a variable as **`const`** in a C source code file, you do so as:
151151
152-
```cpp
152+
```C
153153
const int i = 2;
154154
```
155155

156156
You can then use this variable in another module as follows:
157157

158-
```cpp
158+
```C
159159
extern const int i;
160160
```
161161

0 commit comments

Comments
 (0)