Skip to content

Commit

Permalink
Doctest .=
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 28, 2019
1 parent e33e260 commit f3bea4a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ julia> using BangBang
julia> @! push!(empty!((0, 1)), 2, 3)
(2, 3)
julia> y = [1, 2];
julia> @! y .= 2 .* y
y
2-element Array{Int64,1}:
2
4
julia> y = (1, 2);
julia> @! y .= 2 .* y
y
(2, 4)
```
"""
macro !(expr)
Expand Down

0 comments on commit f3bea4a

Please sign in to comment.