Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Additions to README and remove error

  • Loading branch information...
commit f9982dd8427588c64a3a602cfd52fbcd391afb27 1 parent 5c8fa56
@tedeh authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 lib/utils.js
View
4 README.md
@@ -225,7 +225,7 @@ Every client supports these options:
* `reviver` -> Function to use as a JSON reviver
* `replacer` -> Function to use as a JSON replacer
* `generator` -> Function to generate request ids with. If omitted, Jayson will just generate a "random" number that is [RFC4122] compliant and looks like this: `3d4be346-b5bb-4e28-bc4a-0b721d4f9ef9`
-* `version` -> Can be either integer 1 or integer 2 depending on which specification should be followed in communicating with the server. Defaults to 2 for [JSON-RPC 2.0][jsonrpc-spec]
+* `version` -> Can be either `1` or `2` depending on which specification should be followed in communicating with the server. Defaults to `2` for [JSON-RPC 2.0][jsonrpc-spec]
[rfc_4122_spec]: http://www.ietf.org/rfc/rfc4122.txt
@@ -285,7 +285,7 @@ Every server supports these options:
* `reviver` -> Function to use as a JSON reviver
* `replacer` -> Function to use as a JSON replacer
-* `version` -> Can be either integer 1 or integer 2 depending on which specification clients are expected to follow. Defaults to 2 for [JSON-RPC 2.0][jsonrpc-spec]
+* `version` -> Can be either `1` or `2` depending on which specification clients are expected to follow. Defaults to `2` for [JSON-RPC 2.0][jsonrpc-spec]
#### Using many server interfaces at the same time
View
4 lib/utils.js
@@ -74,8 +74,8 @@ Utils.response = function(error, result, id, version) {
};
/**
- * Generates a random id
- * @return {Number}
+ * Generates a random UUID
+ * @return {String}
* @api public
*/
Utils.generateId = function() {
Please sign in to comment.
Something went wrong with that request. Please try again.