core.js: docs wrongly saying 'method' name is passed to dispacther.
Closes https://github.com/vanadium/issues/issues/467
Change-Id: I899ddd919dd1126f0114f092ce9038cf8308d6f5
diff --git a/src/rpc/server.js b/src/rpc/server.js
index fee6f5e..4d77944 100644
--- a/src/rpc/server.js
+++ b/src/rpc/server.js
@@ -122,13 +122,13 @@
*/
/**
- * A function that returns the service object for a suffix/method pair.
+ * A function that returns the service implementation for the object identified
+ * by the given suffix.
* @callback module:vanadium.rpc~Server~Dispatcher
* @param {string} suffix The suffix for the call.
- * @param {string} method The method for the call.
* @param {module:vanadium.rpc~Server~Dispatcher-callback} cb
* The callback to call when the dispatch is complete.
- * @return {module:vanadium.rpc~Server~DispatcherResponse | Promise}
+ * @return {Promise<module:vanadium.rpc~Server~DispatcherResponse>}
* Either the DispatcherResponse object to
* handle the method call or a Promise that will be resolved the service
* callback.