-
Notifications
You must be signed in to change notification settings - Fork 18
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
slices: misc improvements to godoc #30
Merged
Merged
Commits on Nov 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 94d6f43 - Browse repository at this point
Copy the full SHA 94d6f43View commit details -
Update godoc to reference items instead of arr
In many cases the godoc for slices was referencing "arr", but all functions use "items" as the slice name. "arr" is also misleading since users could assume this refers to the backing array.
Configuration menu - View commit details
-
Copy full SHA for 615c839 - Browse repository at this point
Copy the full SHA 615c839View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c2e976 - Browse repository at this point
Copy the full SHA 6c2e976View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf054f1 - Browse repository at this point
Copy the full SHA bf054f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2912381 - Browse repository at this point
Copy the full SHA 2912381View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8ffda9 - Browse repository at this point
Copy the full SHA f8ffda9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70e3395 - Browse repository at this point
Copy the full SHA 70e3395View commit details -
Improve godoc consistency in slice_func.go
- Add full stops to sentences. - Remove the occasional inconsistent use of `code formatting`, which is not typically rendered in godoc. - Add particles to sentences where appropriate to improve readability.
Configuration menu - View commit details
-
Copy full SHA for f9962a6 - Browse repository at this point
Copy the full SHA f9962a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2adb99 - Browse repository at this point
Copy the full SHA e2adb99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55d75b2 - Browse repository at this point
Copy the full SHA 55d75b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 193a8ee - Browse repository at this point
Copy the full SHA 193a8eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7abee45 - Browse repository at this point
Copy the full SHA 7abee45View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad29ed8 - Browse repository at this point
Copy the full SHA ad29ed8View commit details -
Consistency pass over slice.go and slices.go
- Add full stops to sentences. - Add particles to sentences where appropriate to improve readability. - Always describe the primary slice as `items` to match the argument names. - Reword some godoc to improve grammar or clarify behaviour.
Configuration menu - View commit details
-
Copy full SHA for 854e123 - Browse repository at this point
Copy the full SHA 854e123View commit details -
Improve godoc for Product and friends
I haven't convinced myself that these are actually cartesian product implementations, but my math brain hasn't been used in a while so I have focused on the godoc.
Configuration menu - View commit details
-
Copy full SHA for 2f7b1ab - Browse repository at this point
Copy the full SHA 2f7b1abView commit details -
Zip can be a little confusing without an example, so I have tried to add a concise explanation and example to the godoc. The `ExampleZip()` contains excellent examples so perhaps the docs should refer people to that instead?
Configuration menu - View commit details
-
Copy full SHA for f8a94f3 - Browse repository at this point
Copy the full SHA f8a94f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 787c8fa - Browse repository at this point
Copy the full SHA 787c8faView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.