Skip to content

Commit 59d159f

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 <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 179886f commit 59d159f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/api/tls.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ import { urlToHttpOptions } from 'url';
12331233
const myURL = new URL('https://a:b@測試?abc#foo');
12341234

12351235
console.log(urlToHttpOptions(myURL));
1236-
/**
1236+
/*
12371237
{
12381238
protocol: 'https:',
12391239
hostname: 'xn--g6w251d',
@@ -1252,7 +1252,7 @@ const { urlToHttpOptions } = require('url');
12521252
const myURL = new URL('https://a:b@測試?abc#foo');
12531253

12541254
console.log(urlToHttpOptions(myUrl));
1255-
/**
1255+
/*
12561256
{
12571257
protocol: 'https:',
12581258
hostname: 'xn--g6w251d',

lib/internal/bootstrap/loaders.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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)