Skip to content

Commit 06eb5ad

Browse files
gewarrenCopilot
andauthored
Fix inheritdocs for RightShift operator (#121598)
Co-authored-by: Copilot <[email protected]>
1 parent d23685a commit 06eb5ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore/Tensor.op_RightShift.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static ref readonly TensorSpan<T> ShiftRightArithmetic<T>(scoped in ReadO
4848
extension<TScalar>(Tensor<TScalar>)
4949
where TScalar : IShiftOperators<TScalar, int, TScalar>
5050
{
51-
/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" />
51+
/// <inheritdoc cref="op_RightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
5252
public static Tensor<TScalar> operator >>(Tensor<TScalar> tensor, int shiftAmount) => ShiftRightArithmetic<TScalar>(tensor, shiftAmount);
5353
}
5454

@@ -57,15 +57,15 @@ public static ref readonly TensorSpan<T> ShiftRightArithmetic<T>(scoped in ReadO
5757
extension<TScalar>(Tensor<TScalar> tensor)
5858
where TScalar : IShiftOperators<TScalar, int, TScalar>
5959
{
60-
/// <inheritdoc cref="op_LeftShiftAssignment{T}(ref TensorSpan{T}, int)" />
60+
/// <inheritdoc cref="op_RightShiftAssignment{T}(ref TensorSpan{T}, int)" />
6161
public void operator >>=(int shiftAmount) => ShiftRightArithmetic<TScalar>(tensor, shiftAmount, tensor);
6262
}
6363

6464
/// <typeparam name="TScalar">The type of the elements in the tensor.</typeparam>
6565
extension<TScalar>(TensorSpan<TScalar>)
6666
where TScalar : IShiftOperators<TScalar, int, TScalar>
6767
{
68-
/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" />
68+
/// <inheritdoc cref="op_RightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
6969
public static Tensor<TScalar> operator >>(in TensorSpan<TScalar> tensor, int shiftAmount) => ShiftRightArithmetic<TScalar>(tensor, shiftAmount);
7070
}
7171

src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore/Tensor.op_UnsignedRightShift.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static ref readonly TensorSpan<T> ShiftRightLogical<T>(scoped in ReadOnly
4848
extension<TScalar>(Tensor<TScalar>)
4949
where TScalar : IShiftOperators<TScalar, int, TScalar>
5050
{
51-
/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" />
51+
/// <inheritdoc cref="op_UnsignedRightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
5252
public static Tensor<TScalar> operator >>>(Tensor<TScalar> tensor, int shiftAmount) => ShiftRightLogical<TScalar>(tensor, shiftAmount);
5353
}
5454

@@ -57,15 +57,15 @@ public static ref readonly TensorSpan<T> ShiftRightLogical<T>(scoped in ReadOnly
5757
extension<TScalar>(Tensor<TScalar> tensor)
5858
where TScalar : IShiftOperators<TScalar, int, TScalar>
5959
{
60-
/// <inheritdoc cref="op_LeftShiftAssignment{T}(ref TensorSpan{T}, int)" />
60+
/// <inheritdoc cref="op_UnsignedRightShiftAssignment{T}(ref TensorSpan{T}, int)" />
6161
public void operator >>>=(int shiftAmount) => ShiftRightLogical<TScalar>(tensor, shiftAmount, tensor);
6262
}
6363

6464
/// <typeparam name="TScalar">The type of the elements in the tensor.</typeparam>
6565
extension<TScalar>(TensorSpan<TScalar>)
6666
where TScalar : IShiftOperators<TScalar, int, TScalar>
6767
{
68-
/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" />
68+
/// <inheritdoc cref="op_UnsignedRightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
6969
public static Tensor<TScalar> operator >>>(in TensorSpan<TScalar> tensor, int shiftAmount) => ShiftRightLogical<TScalar>(tensor, shiftAmount);
7070
}
7171

0 commit comments

Comments
 (0)