commit bdb8a5dd500b4fce2db83b106d907d431739e774
parent 611c796932f14244a46129f7ca14ee27cd625019
Author: Jared Tobin <jared@jtobin.io>
Date: Sat, 23 Apr 2022 02:01:00 -0230
Merge pull request #45 from urbit/mp/jsdocing
co.js: fix isValidPat return documentation
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/internal/co.js b/src/internal/co.js
@@ -328,7 +328,7 @@ const sein = name => {
* will not.
*
* @param {String} name a @p or @q value
- * @return {String}
+ * @return {boolean}
*/
const isValidPat = name => {
if (typeof name !== 'string') {
@@ -357,7 +357,7 @@ const isValidPat = name => {
* Validate a @p string.
*
* @param {String} str a string
- * @return {String}
+ * @return {boolean}
*/
const isValidPatp = str =>
isValidPat(str) && str === patp(patp2dec(str))
@@ -366,7 +366,7 @@ const isValidPatp = str =>
* Validate a @q string.
*
* @param {String} str a string
- * @return {String}
+ * @return {boolean}
*/
const isValidPatq = str =>
isValidPat(str) && eqPatq(str, patq(patq2dec(str)))