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

slices: misc improvements to godoc #30

Merged
merged 17 commits into from
Nov 14, 2023

Commits on Nov 14, 2023

  1. Configuration menu
    Copy the full SHA
    94d6f43 View commit details
    Browse the repository at this point in the history
  2. 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.
    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    615c839 View commit details
    Browse the repository at this point in the history
  3. Update grammar for DedupBy

    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    6c2e976 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf054f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2912381 View commit details
    Browse the repository at this point in the history
  6. Improve description of Filter

    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    f8ffda9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    70e3395 View commit details
    Browse the repository at this point in the history
  8. 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.
    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    f9962a6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e2adb99 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    55d75b2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    193a8ee View commit details
    Browse the repository at this point in the history
  12. Improve godoc for Reject

    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    7abee45 View commit details
    Browse the repository at this point in the history
  13. Improve description of Scan

    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    ad29ed8 View commit details
    Browse the repository at this point in the history
  14. 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.
    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    854e123 View commit details
    Browse the repository at this point in the history
  15. 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.
    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    2f7b1ab View commit details
    Browse the repository at this point in the history
  16. Update godoc for Zip

    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?
    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    f8a94f3 View commit details
    Browse the repository at this point in the history
  17. Godoc pass on async functions

    dwurf committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    787c8fa View commit details
    Browse the repository at this point in the history