GeezerVison is showing github.com — doc: standardize on "host name" in fs.md · nodejs/node@47f71de
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -175,9 +175,9 @@ fs.readFileSync(fileUrl); |
175 | 175 |
|
176 | 176 | Using WHATWG [`URL`][] objects might introduce platform-specific behaviors. |
177 | 177 |
|
178 | | -On Windows, `file:` URLs with a hostname convert to UNC paths, while `file:` |
| 178 | +On Windows, `file:` URLs with a host name convert to UNC paths, while `file:` |
179 | 179 | URLs with drive letters convert to local absolute paths. `file:` URLs without a |
180 | | -hostname nor a drive letter will result in a throw: |
| 180 | +host name nor a drive letter will result in a throw: |
181 | 181 |
|
182 | 182 | ```js |
183 | 183 | // On Windows : |
@@ -199,7 +199,7 @@ fs.readFileSync(new URL('file:///c/p/a/t/h/file')); |
199 | 199 | `file:` URLs with drive letters must use `:` as a separator just after |
200 | 200 | the drive letter. Using another separator will result in a throw. |
201 | 201 |
|
202 | | -On all other platforms, `file:` URLs with a hostname are unsupported and will |
| 202 | +On all other platforms, `file:` URLs with a host name are unsupported and will |
203 | 203 | result in a throw: |
204 | 204 |
|
205 | 205 | ```js |
|