From 04647c997bb5c1e03044f6ad3ab3ee157d2ba4e5 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Thu, 11 May 2017 22:44:26 +1200 Subject: [PATCH] adjust line wrapping for more even line lengths --- index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index d3d7639..35f3e07 100644 --- a/index.js +++ b/index.js @@ -24,34 +24,34 @@ //. //. - an npm and browser -compatible package for deriving the //. _type identifier_ of a JavaScript value; and -//. - a specification which authors may follow to specify type identifiers -//. for their types. +//. - a specification which authors may follow to specify type +//. identifiers for their types. //. //. ### Specification //. //. For a type to be compatible with the algorithm: //. -//. - every member of the type MUST have a `constructor` property pointing -//. to an object known as the _type representative_; +//. - every member of the type MUST have a `constructor` property +//. pointing to an object known as the _type representative_; //. //. - the type representative MUST have a `@@type` property //. (the _type identifier_); and //. -//. - the type identifier MUST be a string primitive and SHOULD have format -//. `'/[@]'`, where: +//. - the type identifier MUST be a string primitive and SHOULD have +//. format `'/[@]'`, where: //. -//. - `` MUST consist of one or more characters, and SHOULD -//. equal the name of the npm package which defines the type (including -//. [scope][4] where appropriate); +//. - `` MUST consist of one or more characters, and +//. SHOULD equal the name of the npm package which defines the +//. type (including [scope][4] where appropriate); //. -//. - `` MUST consist of one or more characters, and SHOULD be -//. the unique name of the type; and +//. - `` MUST consist of one or more characters, and SHOULD +//. be the unique name of the type; and //. //. - `` MUST consist of one or more digits, and SHOULD //. represent the version of the type. //. -//. If the type identifier does not conform to the format specified above, it -//. is assumed that the entire string represents the _name_ of the type; +//. If the type identifier does not conform to the format specified above, +//. it is assumed that the entire string represents the _name_ of the type; //. _namespace_ will be `null` and _version_ will be `0`. //. //. If the _version_ is not given, it is assumed to be `0`. @@ -162,7 +162,7 @@ //# type.parse :: String -> { namespace :: Nullable String, name :: String, version :: Number } //. - //. Takes any String and parses it according to the [specification][3], + //. Takes any string and parses it according to the [specification][3], //. returning an object with `namespace`, `name`, and `version` fields. //. //. ```javascript