Skip to content

Commit

Permalink
Simplify some grammar (JuliaLang#22348)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored and simonbyrne committed Jun 13, 2017
1 parent d3db312 commit a32071d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/src/manual/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ julia> map(round, [1.2,3.5,1.7])
2.0
```

This is fine if a named function effecting the transform one wants already exists to pass as the
first argument to [`map()`](@ref). Often, however, a ready-to-use, named function does not exist.
In these situations, the anonymous function construct allows easy creation of a single-use function
object without needing a name:
This is fine if a named function effecting the transform already exists to pass as the first argument
to [`map()`](@ref). Often, however, a ready-to-use, named function does not exist. In these
situations, the anonymous function construct allows easy creation of a single-use function object
without needing a name:

```jldoctest
julia> map(x -> x^2 + 2x - 1, [1,3,-1])
Expand Down

0 comments on commit a32071d

Please sign in to comment.