Skip to content

Commit b4f39e0

Browse files
committed
Fix C# const example and move to correct section
1 parent fff0fc6 commit b4f39e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pages/basics/variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const x = 1; // Block scope; immutable
2424

2525
```csharp
2626
var x = 1; // Block scope
27-
const x = 1; // Compiler "inlined"; NOT the same as JS const
2827
```
2928

3029
</template>
@@ -57,6 +56,7 @@ let map = new Map();
5756
// Primitives
5857
int x = 1;
5958
string y = "";
59+
const int x = 1; // Compiler "inlined"; NOT the same as JS const
6060
6161
// Reference types
6262
var map = new HashMap();

0 commit comments

Comments
 (0)