Browse Source

fix: typo in jsdoc @template example PR1071

zhongsp 4 years ago
parent
commit
50901ca411
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/handbook/Type Checking JavaScript Files.md

+ 1 - 1
doc/handbook/Type Checking JavaScript Files.md

@@ -595,7 +595,7 @@ const ok = s => !(s.length % 2);
 ```js
 ```js
 /**
 /**
  * @template T
  * @template T
- * @param {T} p1 - A generic parameter that flows through to the return type
+ * @param {T} x - A generic parameter that flows through to the return type
  * @return {T}
  * @return {T}
  */
  */
 function id(x){ return x }
 function id(x){ return x }