Skip to content

Commit 8776017

Browse files
authored
Update functions.md (#48356)
According to the documentation at https://docs.julialang.org/en/v1/base/collections/#Base.get, the example here of a no argument function does not appear to implement a time delay as suggested in this doc.
1 parent 1ef65e4 commit 8776017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ get(()->time(), dict, key)
348348
```
349349

350350
The call to [`time`](@ref) is delayed by wrapping it in a 0-argument anonymous function
351-
that is called only when the requested key is absent from `dict`.
351+
that is called only if the requested key is absent from `dict`.
352352

353353
## Tuples
354354

0 commit comments

Comments
 (0)