Skip to content

Fix a code example in the doc pattern-matching.md #15208

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

Merged

Conversation

ShapelessCat
Copy link
Contributor

No description provided.

…mple

- Use the new vararg splices syntax -- the original code example use
  both the old and new vararg splices syntax

- Add return values rather than keep returning `()` implicitly for both
  cases -- no real world code would be written in this way.
@bishabosha bishabosha enabled auto-merge May 17, 2022 21:15
@bishabosha bishabosha merged commit 3432dbf into scala:main May 17, 2022
@ShapelessCat ShapelessCat deleted the fix-a-code-example-in-doc-pattern-matching branch March 7, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants