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

Correct documentation comment for IMultiplyOperators returns #83693

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public interface IMultiplyOperators<TSelf, TOther, TResult>
/// <summary>Multiplies two values together to compute their product.</summary>
/// <param name="left">The value which <paramref name="right" /> multiplies.</param>
/// <param name="right">The value which multiplies <paramref name="left" />.</param>
/// <returns>The product of <paramref name="left" /> divided-by <paramref name="right" />.</returns>
/// <returns>The product of <paramref name="left" /> multiplied-by <paramref name="right" />.</returns>
static abstract TResult operator *(TSelf left, TOther right);

/// <summary>Multiplies two values together to compute their product.</summary>
/// <param name="left">The value which <paramref name="right" /> multiplies.</param>
/// <param name="right">The value which multiplies <paramref name="left" />.</param>
/// <returns>The product of <paramref name="left" /> divided-by <paramref name="right" />.</returns>
/// <returns>The product of <paramref name="left" /> multiplied-by <paramref name="right" />.</returns>
/// <exception cref="OverflowException">The product of <paramref name="left" /> multiplied-by <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
static virtual TResult operator checked *(TSelf left, TOther right) => left * right;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public double Value
/// <summary>Multiplies two values together to compute their product.</summary>
/// <param name="left">The value which <paramref name="right" /> multiplies.</param>
/// <param name="right">The value which multiplies <paramref name="left" />.</param>
/// <returns>The product of <paramref name="left" /> divided-by <paramref name="right" />.</returns>
/// <returns>The product of <paramref name="left" /> multiplied-by <paramref name="right" />.</returns>
[NonVersionable]
public static NFloat operator *(NFloat left, NFloat right) => new NFloat(left._value * right._value);

Expand Down