Skip to content

Commit 46d696a

Browse files
Update README.md
1 parent 82766af commit 46d696a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Functors.jl provides tools to express a powerful design pattern for dealing with
1717

1818
Functors.jl provides `fmap` to make those things easy, acting as a 'map over parameters':
1919

20-
```julia-repl
20+
```julia
2121
julia> using Functors
2222

2323
julia> struct Foo
@@ -52,7 +52,7 @@ Bar(Foo(1.0, [1.0, 2.0, 3.0]))
5252

5353
The workhorse of `fmap` is actually a lower level function, `functor`:
5454

55-
```julia-repl
55+
```julia
5656
julia> xs, re = functor(Foo(1, [1, 2, 3]))
5757
((x = 1, y = [1, 2, 3]), var"#21#22"())
5858

@@ -64,7 +64,7 @@ Foo(1.0, [1.0, 2.0, 3.0])
6464

6565
To include only certain fields, pass a tuple of field names to `@functor`:
6666

67-
```julia-repl
67+
```julia
6868
julia> struct Baz
6969
x
7070
y
@@ -87,7 +87,7 @@ For a discussion regarding the need for a `cache` in the implementation of `fmap
8787

8888
Use `exclude` for more fine-grained control over whether `fmap` descends into a particular value (the default is `exclude = Functors.isleaf`):
8989

90-
```julia-repl
90+
```julia
9191
julia> using CUDA
9292

9393
julia> x = ['a', 'b', 'c'];

0 commit comments

Comments
 (0)