Skip to content

Fix Hypot documentation typo: correct second parameter reference#124111

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-typo-in-hypot-description
Open

Fix Hypot documentation typo: correct second parameter reference#124111
Copilot wants to merge 2 commits intomainfrom
copilot/fix-typo-in-hypot-description

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

Description

The XML documentation for TensorPrimitives.Hypot incorrectly stated the method computes T.Hypot(x[i], x[i]) instead of T.Hypot(x[i], y[i]).

Changes

  • Corrected the second <paramref> in the <remarks> section from x to y on line 21 of TensorPrimitives.Hypot.cs

The method signature takes two parameters (x and y), and the documentation now accurately reflects this.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: vcsjones <361677+vcsjones@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix typo in TensorPrimitives.Hypot.cs documentation Fix Hypot documentation typo: correct second parameter reference Feb 6, 2026
Copilot AI requested a review from vcsjones February 6, 2026 22:54
@vcsjones vcsjones marked this pull request as ready for review February 6, 2026 22:55
Copilot AI review requested due to automatic review settings February 6, 2026 22:55
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes an incorrect XML documentation example for TensorPrimitives.Hypot, aligning the <remarks> formula with the actual (x, y) method signature and behavior.

Changes:

  • Corrected the <paramref> reference in the <remarks> example from x to y for the second argument to T.Hypot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants