diff --git a/doc/api/url.md b/doc/api/url.md index 0fa8d475da3140..4f4baedfe716dc 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'`.