Skip to content

Commit da6f801

Browse files
authored
update Dict syntax (#319)
1 parent cc3052f commit da6f801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/first_steps/persistence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ reloaded_g = loadgraph("mygraph.lg")
2626
Finally, dictionaries of graphs can also be saved and subsequently re-loaded one by one.
2727

2828
```julia
29-
graph_dict = {"g1" => erdos_renyi(5, 0.1),
29+
graph_dict = Dict("g1" => erdos_renyi(5, 0.1),
3030
"g2" => erdos_renyi(10, 0.2),
31-
"g3" => erdos_renyi(2, 0.9)}
31+
"g3" => erdos_renyi(2, 0.9))
3232

3333
savegraph("mygraph_dict.lg", graph_dict)
3434

0 commit comments

Comments
 (0)