From 3be55faaf51c4cef5724724bddcd4438ef716cf3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 14 Aug 2018 15:17:47 -0700 Subject: [PATCH] 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 Reviewed-By: Bryan English --- doc/api/url.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'`.