Skip to content

Commit e1e5b4c

Browse files
authored
Fix macro signature in docstring (#184)
1 parent c2ae321 commit e1e5b4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ onevalue(λ, x::AbstractArray{T}) where T = onevalue(convert(float(T), λ), x)
225225
nonneg::Real) = η < 0 ? throw(DomainError(η, "the learning rate cannot be negative")) : η
226226

227227
"""
228-
@def struct Rule; eta = 0.1; beta = (0.7, 0.8); end
228+
@def struct Rule; eta = 0.1; beta = (0.7, 0.8); end
229229
230230
Helper macro for defining rules with default values.
231231
The types of the literal values are used in the `struct`,
232232
like this:
233-
```
233+
```julia
234234
struct Rule
235235
eta::Float64
236236
beta::Tuple{Float64, Float64}

0 commit comments

Comments
 (0)