diff --git a/lib/init-action.js b/lib/init-action.js index b2cfe5f44..45e5039cd 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -86563,11 +86563,11 @@ var Result = class _Result { this._ok = _ok; this.value = value; } - /** A success result. */ + /** Creates a success result. */ static success(value) { return new _Result(true, value); } - /** A failure result. */ + /** Creates a failure result. */ static failure(value) { return new _Result(false, value); } diff --git a/src/util.ts b/src/util.ts index 2f2bbf72a..5d52b4d0a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1307,12 +1307,12 @@ export class Result { public readonly value: T | E, ) {} - /** A success result. */ + /** Creates a success result. */ static success(value: T): Success { return new Result(true, value) as Success; } - /** A failure result. */ + /** Creates a failure result. */ static failure(value: E): Failure { return new Result(false, value) as Failure; }