[Chapel Merge] docs(generics): update parameters with user submitted example

Branch: refs/heads/main
Revision: f8e71bfd05bfbf21b8fb438b93e948731eb25f88
Author: arezaii
Link: docs(generics): update parameters with user submitted example by arezaii · Pull Request #21902 · chapel-lang/chapel · GitHub
Log Message:
docs(generics): update parameters with user submitted example (#21902)

This PR updates the documentation for parameters in generic types to
include a user submitted example from
More detail in how to explicitly-specialize generic records to different widths of primitive types · Issue #21524 · chapel-lang/chapel · GitHub.

TESTING:

  • build docs locally and inspect generics page
  • make spectests and run generics tests

reviewed by @mppf - thanks!

Compare: Comparing eb84cb82368cda6503b920cf3d94728c542914e5...257ad86f6ca9f152d9c17b2340e543675b08d5fa · chapel-lang/chapel · GitHub

Diff:
M doc/rst/language/spec/generics.rst
https://github.com/chapel-lang/chapel/pull/21902.diff