Skip to content

Commit 55d063f

Browse files
committed
Fix syntax
1 parent b47aa44 commit 55d063f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arrays/relation_to_final_variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final char[] catchphrase = { 'w', 'o', 'a', 'h', '!' };
1212
System.out.println(catchphrase);
1313

1414
// Cannot reassign
15-
// catchphrase = { 'e', 'g', 'a', 'd', 's' }
15+
// catchphrase = new char[] { 'e', 'g', 'a', 'd', 's' }
1616
// but can set elements directly
1717
catchphrase[0] = 'e';
1818
catchphrase[1] = 'g';

0 commit comments

Comments
 (0)