Skip to content

Commit 7376aef

Browse files
authored
Fix array declaration syntax in C example (#562)
1 parent 7b52938 commit 7376aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c_arrays_and_inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Suppose you have a struct like this:
2323
struct Person{
2424
std::string first_name;
2525
std::string last_name;
26-
int[5] post_code;
26+
int post_code[5];
2727
};
2828
```
2929

0 commit comments

Comments
 (0)