Skip to content

Commit 8a7d80e

Browse files
committed
Adding noname feature to doc
1 parent 30354de commit 8a7d80e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ If you want that only specific functions to be considered in transformation by `
3535
end
3636
```
3737

38-
It is possible to use the function names inside curly expressions like `Union{A, subtypes{B}}` or `Type{allsubtypes{A}}`
38+
It is possible to use the function names inside curly expressions like `Union{A, subtypes{B}}` or `Type{allsubtypes{A}}` or use arguments without a name:
3939
```julia
40-
@transform function foo_curly(a, b::Union{T,allsubtypes(A)}, c::T) where {T<:Int64}
40+
@transform function foo_curly(a, ::Union{T,allsubtypes(A)}, c::T) where {T<:Int64}
4141
println("a new method")
4242
end
4343
```

src/TypeTransform.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ If you want that only specific functions to be considered in transformation by `
4141
end
4242
```
4343
44-
It is possible to use the function names inside curly expressions like `Union{A, subtypes{B}}` or `Type{allsubtypes{A}}`
44+
It is possible to use the function names inside curly expressions like `Union{A, subtypes{B}}` or `Type{allsubtypes{A}}` or use arguments without a name:
4545
```julia
46-
@transform function foo_curly(a, b::Union{T,allsubtypes(A)}, c::T) where {T<:Int64}
46+
@transform function foo_curly(a, ::Union{T,allsubtypes(A)}, c::T) where {T<:Int64}
4747
println("a new method")
4848
end
4949
```

0 commit comments

Comments
 (0)