Skip to content

Commit

Permalink
adjust line wrapping for more even line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed May 11, 2017
1 parent faa2cc9 commit 04647c9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
//. `'<namespace>/<name>[@<version>]'`, where:
//. - the type identifier MUST be a string primitive and SHOULD have
//. format `'<namespace>/<name>[@<version>]'`, where:
//.
//. - `<namespace>` 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);
//. - `<namespace>` 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);
//.
//. - `<name>` MUST consist of one or more characters, and SHOULD be
//. the unique name of the type; and
//. - `<name>` MUST consist of one or more characters, and SHOULD
//. be the unique name of the type; and
//.
//. - `<version>` 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`.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04647c9

Please sign in to comment.