From ef56cba71b7f53c42bbe8cb1f2a001fa52394137 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 5 Jun 2019 14:39:27 +1200 Subject: [PATCH] Polish Uuid API JSDoc --- libraries/script-engine/src/ScriptUUID.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libraries/script-engine/src/ScriptUUID.h b/libraries/script-engine/src/ScriptUUID.h index 4f0dfd10b6..b667447aaa 100644 --- a/libraries/script-engine/src/ScriptUUID.h +++ b/libraries/script-engine/src/ScriptUUID.h @@ -30,7 +30,7 @@ * @hifi-server-entity * @hifi-assignment-client * - * @property {Uuid} NULL - The null UUID, {00000000-0000-0000-0000-000000000000}. + * @property {Uuid} NULL - The null UUID, "{00000000-0000-0000-0000-000000000000}". */ /// Scriptable interface for a UUID helper class object. Used exclusively in the JavaScript API @@ -66,7 +66,7 @@ public slots: QString toString(const QUuid& id); /**jsdoc - * Generate a new UUID. + * Generates a new UUID. * @function Uuid(0).generate * @returns {Uuid} A new UUID. * @example Generate a new UUID and reports its JavaScript type. @@ -77,7 +77,7 @@ public slots: QUuid generate(); /**jsdoc - * Test whether two given UUIDs are equal. + * Tests whether two UUIDs are equal. * @function Uuid(0).isEqual * @param {Uuid} idA - The first UUID to compare. * @param {Uuid} idB - The second UUID to compare. @@ -92,10 +92,11 @@ public slots: bool isEqual(const QUuid& idA, const QUuid& idB); /**jsdoc - * Test whether a given UUID is null. + * Tests whether a UUID is null. * @function Uuid(0).isNull * @param {Uuid} id - The UUID to test. - * @returns {boolean} true if the UUID equals Uuid.NULL or is null, otherwise false. + * @returns {boolean} true if the UUID equals Uuid.NULL or is null, otherwise + * false. * @example Demonstrate true and false cases. * var uuid; // undefined * print(Uuid.isNull(uuid)); // false @@ -109,7 +110,7 @@ public slots: bool isNull(const QUuid& id); /**jsdoc - * Print to the program log a text label followed by the UUID value. + * Prints a UUID to the program log, as a text label followed by the UUID value. * @function Uuid(0).print * @param {string} label - The label to print. * @param {Uuid} id - The UUID to print.