Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored and jw3126 committed Sep 12, 2019
1 parent 335471a commit f0448ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lens.jl
Expand Up @@ -296,14 +296,14 @@ julia> using Setfield
julia> obj = ((1, 2), (3, 4));
julia> l = (@lens first(_)) ∘ (@lens last(_))
julia> lens = (@lens first(_)) ∘ (@lens last(_))
(@lens last(first(_)))
julia> get(obj, lens)
3
2
julia> set(obj, lens, '3')
((1, 2), ('3', 4))
julia> set(obj, lens, '2')
((1, '2'), (3, 4))
```
# Implementation
Expand Down

0 comments on commit f0448ff

Please sign in to comment.