Skip to content

gen-guest-c: switch result boolean to indicate success#452

Merged
alexcrichton merged 1 commit intomainfrom
result-bool-switch
Dec 12, 2022
Merged

gen-guest-c: switch result boolean to indicate success#452
alexcrichton merged 1 commit intomainfrom
result-bool-switch

Conversation

@guybedford
Copy link
Copy Markdown
Contributor

Follow-up to d47b6c5 - it's quite confusing having the true value for a result function mean failure when using booleans as opposed to code returns.

This PR reverses that so that the return boolean indicates success, and a false check means failure rather.

@alexcrichton alexcrichton merged commit 5362b21 into main Dec 12, 2022
@alexcrichton alexcrichton deleted the result-bool-switch branch December 12, 2022 20:39
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