Skip to content

Commit

Permalink
Change fmap to execute in functors example
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChainsaw committed Jun 29, 2024
1 parent 7f9e7bc commit 894daa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Documenter = "0.27"
Documenter = "1"
Zygote = "0.6"
2 changes: 1 addition & 1 deletion test/examples/advancedtutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ end
(::RenameWalk)(recurse, x) = Functors.DefaultWalk()(recurse, x)

# I must admit that thinking about what this does makes me a bit dizzy...
namedgraph = Functors.fmap(walk, identity, graph)
namedgraph = Functors.execute(walk, graph)

@test name.(vertices(namedgraph)) == ["in changed", "layer1", "layer2"]
@test graph(ones(2, 1)) == namedgraph(ones(2,1))
Expand Down

0 comments on commit 894daa9

Please sign in to comment.