diff --git a/docs/src/index.md b/docs/src/index.md index d7e7c24..d7c6236 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -142,7 +142,7 @@ false `@$` allows users to create general partial functions by replacing the currently unknown arguments with `_`. For example, we can implement matrix multiplication as: -```jldoctest +```julia-repl julia> matmul(A, X, B) = A * X .+ B matmul (generic function with 1 method) diff --git a/src/PartialFunctions.jl b/src/PartialFunctions.jl index 139aaaf..04662cd 100644 --- a/src/PartialFunctions.jl +++ b/src/PartialFunctions.jl @@ -2,7 +2,8 @@ module PartialFunctions using MacroTools -export $, @$ +export $ +export @$ export <| include("reversedfunctions.jl") @@ -96,7 +97,7 @@ Partially apply the given arguments to `f`. Unknown arguments are represented by # Examples -```jldoctest +```julia-repl julia> matmul(A, X, B; C = 1) = A * X .+ B .* C matmul (generic function with 1 method)