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

Document the test-only intentions of this package #189

Merged
merged 2 commits into from
Feb 27, 2020
Merged

Document the test-only intentions of this package #189

merged 2 commits into from
Feb 27, 2020

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Feb 27, 2020

This package was never intended to be used in production code.
Document the expectation that this package was only intended
to be used for writing tests.

@dsnet dsnet requested a review from neild February 27, 2020 09:09
cmp/compare.go Outdated
@@ -6,6 +6,9 @@
//
// This package is intended to be a more powerful and safer alternative to
// reflect.DeepEqual for comparing whether two values are semantically equal.
// It is intended to only be used in tests, as cmp may panic if it cannot
// compare the values. It's propensity towards panicking means that it is
Copy link
Collaborator

Choose a reason for hiding this comment

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

Its

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Kept it in untracted form for the first occurrence. Used contracted form for later occurences.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, you were probably referring to the "it's", which is incorrect grammar. Sigh, the inability to highlight a specific word in GitHub PR is confusing.

cmp/compare.go Outdated Show resolved Hide resolved
cmp/compare.go Outdated Show resolved Hide resolved
@dsnet dsnet merged commit f6dc95b into master Feb 27, 2020
@dsnet dsnet deleted the pkgdoc branch February 29, 2020 22:05
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.

None yet

2 participants