diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-19 11:31:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-19 11:31:11 +0100 |
| commit | 1556fad65a52af7683d5c80f2f724ef252525163 (patch) | |
| tree | 565b7327f9ae66e692641c2ef5659d11f9e091fc /src/check_expr.cpp | |
| parent | 243e2e2b8a7566087375178a66b25b5d9ac9a356 (diff) | |
Change syntax for matrices to `matrix[R, C]T`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 1ca5b895d..a75334e6c 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -9138,7 +9138,7 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) { str = write_expr_to_string(str, mie->expr, shorthand); str = gb_string_append_rune(str, '['); str = write_expr_to_string(str, mie->row_index, shorthand); - str = gb_string_appendc(str, "; "); + str = gb_string_appendc(str, ", "); str = write_expr_to_string(str, mie->column_index, shorthand); str = gb_string_append_rune(str, ']'); case_end; @@ -9216,9 +9216,9 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) { case_end; case_ast_node(mt, MatrixType, node); - str = gb_string_append_rune(str, '['); + str = gb_string_appendc(str, "matrix["); str = write_expr_to_string(str, mt->row_count, shorthand); - str = gb_string_appendc(str, "; "); + str = gb_string_appendc(str, ", "); str = write_expr_to_string(str, mt->column_count, shorthand); str = gb_string_append_rune(str, ']'); str = write_expr_to_string(str, mt->elem, shorthand); |