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

Lambdas need an explicit return #8730

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

Marenz
Copy link
Contributor

@Marenz Marenz commented Jan 6, 2024

Extend the documentation so that it is clear that lambdas require an explicit return .

Also add an according example.

fixes: #8729

@AThousandShips AThousandShips added discussion topic:gdscript area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Jan 6, 2024
@AThousandShips AThousandShips requested a review from a team January 6, 2024 19:28
Lambdas need an explicit `return`

Extend the documentation so that it is clear that lambdas require an explicit return .

Also add an according example.

Co-Authored-By: Danil Alexeev <danil@alexeev.xyz>
@Marenz
Copy link
Contributor Author

Marenz commented Jan 7, 2024

Used your suggestion and moved it down

@mhilbrunner mhilbrunner merged commit 3b9e85b into godotengine:master Jan 8, 2024
1 check passed
@mhilbrunner
Copy link
Member

Merged. Thanks and congrats on your first merged contribution!

@Marenz Marenz deleted the patch-1 branch January 8, 2024 08:48
mhilbrunner added a commit that referenced this pull request Jan 25, 2024
Lambdas need an explicit `return`
@mhilbrunner
Copy link
Member

Cherry-picked to 4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement topic:gdscript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lambda documentation does not mention "return" is required
4 participants