Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 30d1abd

Browse files
authored
Fix documentation for Padded function. (#556)
1 parent 53fb767 commit 30d1abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Standard/src/Arrays/Arrays.qs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ namespace Microsoft.Quantum.Arrays {
261261
/// ```qsharp
262262
/// let array = [10, 11, 12];
263263
/// // The following line returns [10, 12, 15, 2, 2, 2].
264-
/// let output = Padded(-6, array, 2);
264+
/// let output = Padded(-6, 2, array);
265265
/// // The following line returns [2, 2, 2, 10, 12, 15].
266-
/// let output = Padded(6, array, 2);
266+
/// let output = Padded(6, 2, array);
267267
/// ```
268268
function Padded<'T> (nElementsTotal : Int, defaultElement : 'T, inputArray : 'T[]) : 'T[] {
269269
let nElementsInitial = Length(inputArray);

0 commit comments

Comments
 (0)