Skip to content

Commit ccabdd6

Browse files
Further improve bad shape link check
1 parent be3d3d3 commit ccabdd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/lint.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ for (const match of text.matchAll(/\bnot greater\b/g)) {
333333
error(`Prefer "less or equal" to "not greater" (etc): ${format(match)}`);
334334
}
335335

336-
// [WebNN] Look for incorrect use of shape for an MLOperandDescriptor
336+
// [WebNN] Ensure MLOperandDescriptor's shape is linked, not MLOperand's.
337337
// This looks for variables containing 'desc' (descriptor, desc2, etc).
338338
// FUTURE: Implement a "type checker" for specs.
339339
for (const match of source.matchAll(/(\|\w*desc\w*\|)'s \[=MLOperand\/shape=\]/ig)) {
340-
error(`Use ${match[1]}.{{MLOperandDescriptor/shape}} not shape: ${format(match)}`);
340+
error(`Use ${match[1]}.{{MLOperandDescriptor/shape}} not MLOperand's shape: ${format(match)}`);
341341
}
342342

343343
// [Generic] Look for missing dict-member dfns

0 commit comments

Comments
 (0)