Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Dec 14, 2023
1 parent f1cf584 commit ccb9281
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/intro-01-first-steps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ And they are called with `func(a, b)` or `func(a, b, 3)`
### Keyword arguments
[Keyword arguments](https://docs.julialang.org/en/v1/manual/functions/#Keyword-Arguments) are listed after `;`
[Keyword arguments](https://docs.julialang.org/en/v1/manual/functions/#Keyword-Arguments) are listed after `;`. They are called by name rather than order.
```julia
function plot(x, y; style="solid", width=1, color="black")
Expand All @@ -449,7 +449,7 @@ And they are called with `plot(x, y, width=2)` or `plot(x, y; width=2)`
===#

args_kwargs(args...; kwargs...) = (args, kwargs) ## mind the semicolon ;
args_kwargs(args...; kwargs...) = (args, kwargs) ## Note the semicolon

args_kwargs(1, 2, 3; a=4, b=5.0, c="Hello")

Expand All @@ -459,7 +459,6 @@ args_kwargs(1, 2, 3; a=4, b=5.0, c="Hello")
- [Compositing functions and pipes](https://docs.julialang.org/en/v1/manual/functions/#Function-composition-and-piping)
- [Variable argument (vararg) functions](https://docs.julialang.org/en/v1/manual/functions/#Varargs-Functions)
- [Argument destructuring](https://docs.julialang.org/en/v1/manual/functions/#Argument-destructuring)
- [Scope of variables](https://docs.julialang.org/en/v1/manual/variables-and-scoping/)
===#
Expand Down

0 comments on commit ccb9281

Please sign in to comment.