Skip to content

Fix Hypot documentation typo: correct second parameter reference#124111

Merged
tannergooding merged 2 commits intomainfrom
copilot/fix-typo-in-hypot-description
Feb 9, 2026
Merged

Fix Hypot documentation typo: correct second parameter reference#124111
tannergooding merged 2 commits intomainfrom
copilot/fix-typo-in-hypot-description

Conversation

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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.

@tannergooding tannergooding merged commit 4a0b333 into main Feb 9, 2026
92 of 95 checks passed
@tannergooding tannergooding deleted the copilot/fix-typo-in-hypot-description branch February 9, 2026 20:41
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
…net#124111)

## 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.

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 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](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vcsjones <361677+vcsjones@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants