Skip to content

Commit

Permalink
Add docs for ArrayLiteral#- (#12916)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Jan 9, 2023
1 parent 5402f6a commit 7561aca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ module Crystal::Macros
def +(other : ArrayLiteral) : ArrayLiteral
end

# Similar to `Array#-`.
def -(other : ArrayLiteral) : ArrayLiteral
end

# Returns the type specified at the end of the array literal, if any.
#
# This refers to the part after brackets in `[] of String`.
Expand Down

0 comments on commit 7561aca

Please sign in to comment.