Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe Yip <[email protected]>
  • Loading branch information
cyip10 committed Jul 12, 2024
1 parent ce34f7e commit aa4a958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,16 +1057,19 @@ export class BaseClient {
return this.createWritePromise(createLLen(key));
}

/** Sets the list element at index to element.
/**
* Sets the list element at index to element.
* The index is zero-based, so 0 means the first element,1 the second element and so on.
* Negative indices can be used to designate elements starting at the tail of
* the list. Here, -1 means the last element, -2 means the penultimate and so forth.
*
* See https://valkey.io/commands/lset/ for details.
*
* @param key The key of the list.
* @param index The index of the element in the list to be set.
* @param element - The new element to set at the specified index.
* @return always "OK".
*
* @example
* ```typescript
* // Example usage of the lset method
Expand Down
4 changes: 3 additions & 1 deletion node/src/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,12 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
return this.addAndReturn(createLLen(key));
}

/** Sets the list element at index to element.
/**
* Sets the list element at index to element.
* The index is zero-based, so 0 means the first element,1 the second element and so on.
* Negative indices can be used to designate elements starting at the tail of
* the list. Here, -1 means the last element, -2 means the penultimate and so forth.
*
* See https://valkey.io/commands/lset/ for details.
*
* @param key The key of the list.
Expand Down

0 comments on commit aa4a958

Please sign in to comment.