Skip to content

Commit c9b09d1

Browse files
Trottdanielleadams
authored andcommitted
doc,lib,tools: align multiline comments
These changes are in preparation for enabling a JSDoc lint rule. PR-URL: #41109 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 9569180 commit c9b09d1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/api/tls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ const keyingMaterial = tlsSocket.exportKeyingMaterial(
10101010
128,
10111011
'client finished');
10121012

1013-
/**
1013+
/*
10141014
Example return value of keyingMaterial:
10151015
<Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
10161016
12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91

doc/api/url.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ import { urlToHttpOptions } from 'url';
12351235
const myURL = new URL('https://a:b@測試?abc#foo');
12361236

12371237
console.log(urlToHttpOptions(myURL));
1238-
/**
1238+
/*
12391239
{
12401240
protocol: 'https:',
12411241
hostname: 'xn--g6w251d',
@@ -1254,7 +1254,7 @@ const { urlToHttpOptions } = require('url');
12541254
const myURL = new URL('https://a:b@測試?abc#foo');
12551255

12561256
console.log(urlToHttpOptions(myUrl));
1257-
/**
1257+
/*
12581258
{
12591259
protocol: 'https:',
12601260
hostname: 'xn--g6w251d',

lib/internal/bootstrap/loaders.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class NativeModule {
192192
/**
193193
* A map from the module IDs to the module instances.
194194
* @type {Map<string, NativeModule>}
195-
*/
195+
*/
196196
static map = new SafeMap(
197197
ArrayPrototypeMap(moduleIds, (id) => [id, new NativeModule(id)])
198198
);

tools/eslint-rules/rules-utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ module.exports.isRequired = function(node, modules) {
3030
};
3131

3232
/**
33-
* Return true if common module is required
34-
* in AST Node under inspection
35-
*/
33+
* Return true if common module is required
34+
* in AST Node under inspection
35+
*/
3636
const commonModuleRegExp = new RegExp(/^(\.\.\/)*common(\.js)?$/);
3737
module.exports.isCommonModule = function(node) {
3838
return isRequireCall(node) &&

0 commit comments

Comments
 (0)