Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix description of kwargs... #28757

Merged
merged 2 commits into from
Aug 20, 2018
Merged

Conversation

bicycle1885
Copy link
Member

I thought kwargs is a named tuple from this description in the manual but actually it isn't (oh why!?). So I fixed it and relocated the paragraph to a better place.

@@ -541,6 +541,10 @@ function f(x; y=0, kwargs...)
end
```

Inside `f`, `kwargs` will be a key-value iterator over a named tuple. Named
tuples (as well as dictionaries) can be passed as keyword arguments using a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth mentioning that the keys of the dictionary should be Symbols?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Updated.

@KristofferC KristofferC merged commit 3a54c14 into JuliaLang:master Aug 20, 2018
@bicycle1885 bicycle1885 deleted the fix-doc-kwargs branch August 20, 2018 09:43
KristofferC pushed a commit that referenced this pull request Aug 20, 2018
* fix description of kwargs...

* clarify the key type of dicts passed as kwargs

(cherry picked from commit 3a54c14)
staticfloat pushed a commit that referenced this pull request Aug 24, 2018
* fix description of kwargs...

* clarify the key type of dicts passed as kwargs
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
* fix description of kwargs...

* clarify the key type of dicts passed as kwargs

(cherry picked from commit 3a54c14)
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
* fix description of kwargs...

* clarify the key type of dicts passed as kwargs

(cherry picked from commit 3a54c14)
@KristofferC KristofferC added docs This change adds or pertains to documentation and removed backport pending 1.0 labels Sep 27, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
* fix description of kwargs...

* clarify the key type of dicts passed as kwargs

(cherry picked from commit 3a54c14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants