diff --git a/lib/pinc_format/Formatter.ml b/lib/pinc_format/Formatter.ml index 3a5954e..939ca7a 100644 --- a/lib/pinc_format/Formatter.ml +++ b/lib/pinc_format/Formatter.ml @@ -266,7 +266,7 @@ and format_binary_expression left op right = | Parsetree.Operators.Binary.BRACKET_ACCESS -> l ^^ brackets r | Parsetree.Operators.Binary.FUNCTION_CALL -> l ^^ parens r | Parsetree.Operators.Binary.PIPE -> l ^^ space ^^ bar ^^ rangle ^^ space ^^ r - | Parsetree.Operators.Binary.ARRAY_ADD -> l ^^ space ^^ at ^^ space ^^ r + | Parsetree.Operators.Binary.ARRAY_ADD -> l ^^ space ^^ langle ^^ minus ^^ space ^^ r | Parsetree.Operators.Binary.MERGE -> l ^^ space ^^ twice at ^^ space ^^ r | Parsetree.Operators.Binary.RANGE -> l ^^ twice dot ^^ r | Parsetree.Operators.Binary.INCLUSIVE_RANGE -> l ^^ repeat 3 dot ^^ r diff --git a/test/array/run.t b/test/array/run.t index 9904718..8068da4 100644 --- a/test/array/run.t +++ b/test/array/run.t @@ -48,8 +48,8 @@ use Base; let array = 0...3; - let new_array = array @ 4; - let new_array_2 = array @ 4 @ 5 @ 6; + let new_array = array <- 4; + let new_array_2 = array <- 4 <- 5 <- 6; let merged_array = new_array @@ 5...7; let merged_array_2 = new_array @@ 5...7 @@ [8, 9]; @@ -69,7 +69,7 @@ y: 8, }; - let nested_array = new_array @ (merged_array @ merged_record_2); + let nested_array = new_array <- (merged_array <- merged_record_2); let index = 8; let partitioned = merged_array_2 |> Array.partition(fn (item) -> { item % 2 == 0 });