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

Clarify documentation on Finish #194

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Jul 10, 2024

Finish no longer has to be explicitly called on Controller with defer if the Controller was created with testing.T.

We tried to just mark this as deprecated in #50 but doing so would break many users, so we reverted it in #85.

In doing so we dropped some wordings from the doc that marked Finished as unnecessary for most cases.

This PR fixes the docstring to guide users without explicitly marking the API deprecated.

Finish no longer has to be explicitly called on Controller with defer
if the Controller was created with testing.T.

We tried to just mark this as deprecated in uber-go#50 but doing so would break
many users, so we reverted it in uber-go#85.

In doing so we dropped some wordings from the doc that marked Finished
as unnecessary for most cases.

This PR fixes the docstring to guide users without explicitly marking
the API deprecated.
@sywhang sywhang requested a review from JacobOaks July 10, 2024 18:48
@sywhang sywhang merged commit 70a5e8c into uber-go:main Jul 10, 2024
4 checks passed
@sywhang sywhang deleted the finished-doc branch July 10, 2024 19:02
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