Skip to content

Commit 84fe6cc

Browse files
committed
docstring reformatting
1 parent c2822d3 commit 84fe6cc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/rule.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,16 @@ slot variable match results into the calling scope when the `pattern` matches, o
324324
rule language for specifying the `pattern` is the same in @capture as it is in `@rule`. Contextual matching
325325
is not yet supported
326326
327-
e.g.
328-
329-
julia> @syms a; ex = a ^ a;
330-
331-
julia> if @capture ex (~x) + (~x)
332-
@show x
333-
elseif @capture ex (~y) ^ (~y)
334-
@show y
335-
end;
336-
y = a
327+
```julia
328+
julia> @syms a; ex = a^a;
329+
330+
julia> if @capture ex (~x)^(~x)
331+
@show x
332+
elseif @capture ex 2(~y)
333+
@show y
334+
end;
335+
x = a
336+
```
337337
338338
See also: [`@rule`](@ref)
339339
"""

0 commit comments

Comments
 (0)