Skip to content

Commit 05df16a

Browse files
authored
Fixed typo in documentation (#249)
* chore: Fixed typo in documentation * chore: Added changeset
1 parent 07e4794 commit 05df16a

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/sweet-papers-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@codemod-utils/ast-template-tag": patch
3+
---
4+
5+
Fixed typo in documentation

packages/ast/template-tag/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Finds `<template>` tags in a file.
4444
Count the number of lines of code (LOC) in `<template>` tags.
4545

4646
```ts
47-
function getLOC(code: string): number {
47+
function getLOC(file: string): number {
4848
const matches = file.match(/\r?\n/g);
4949

5050
return (matches ?? []).length;

packages/ast/template-tag/src/find-template-tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { preprocessor, type TemplateTag } from './-private/content-tag.js';
1616
* Count the number of lines of code (LOC) in `<template>` tags.
1717
*
1818
* ```ts
19-
* function getLOC(code: string): number {
19+
* function getLOC(file: string): number {
2020
* const matches = file.match(/\r?\n/g);
2121
*
2222
* return (matches ?? []).length;

0 commit comments

Comments
 (0)