Skip to content

Commit 278e29a

Browse files
author
Nikita Kraiouchkine
authored
Merge pull request #259 from jketema/typo-fix
Fix typo in misra RULE-9-3 test
2 parents f8c9158 + 3e5b02a commit 278e29a

File tree

1 file changed

+1
-1
lines changed
  • c/misra/test/rules/RULE-9-3

1 file changed

+1
-1
lines changed

c/misra/test/rules/RULE-9-3/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void test() {
1515
{0}, [1][0] = 0, 0}; // NON_COMPLIANT - not all elements
1616
// initialized with designated initializer
1717

18-
int l15[2] = {[1] = 0}; // COMPILANT - sparse matrix initialized with
18+
int l15[2] = {[1] = 0}; // COMPLIANT - sparse matrix initialized with
1919
// designated initializer
2020
int l16[2][2] = {[0] = {0, 1}}; // NON_COMPLIANT - sub-elements not
2121
// initialized with designated initializer

0 commit comments

Comments
 (0)