diff options
author | Rich Trott <rtrott@gmail.com> | 2018-08-15 01:17:47 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-08-15 02:39:29 +0300 |
commit | bccd7b8dacef7806b977a07caeae27328aadacd5 (patch) | |
tree | 2431cdcf97f86733eb079b1cd1c5fb51197df380 /doc/api/url.md | |
parent | 91dac87f6cb4495152892b82d9c761cc0110d318 (diff) |
doc: remove redundant explanation of format
Simplify format explanation for urlObject.auth.
PR-URL: https://github.com/nodejs/node/pull/22324
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r-- | doc/api/url.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/url.md b/doc/api/url.md index 0fa8d475da3..4f4baedfe71 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -921,8 +921,8 @@ The legacy `urlObject` (`require('url').Url`) is created and returned by the The `auth` property is the username and password portion of the URL, also referred to as _userinfo_. This string subset follows the `protocol` and double slashes (if present) and precedes the `host` component, delimited by an -ASCII "at sign" (`@`). The format of the string is `{username}[:{password}]`, -with the `[:{password}]` portion being optional. +ASCII "at sign" (`@`). The string is either the username, or it is the username +and password separated by `:`. For example: `'user:pass'`. |