Skip to content

Commit 2e46779

Browse files
Fix a typo (#679)
1 parent dd2f994 commit 2e46779

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ jsdiff's diff functions all take an old text and a new text and perform three st
186186
187187
* `parsePatch(diffStr)` - Parses a patch into structured data
188188
189-
Return a JSON object representation of the a patch, suitable for use with the `applyPatch` method. This parses to the same structure returned by `structuredPatch`.
189+
Return a JSON object representation of the patch, suitable for use with the `applyPatch` method. This parses to the same structure returned by `structuredPatch`.
190190
191191
* `reversePatch(patch)` - Returns a new structured patch which when applied will undo the original `patch`.
192192

src/patch/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { StructuredPatch } from '../types.js';
33
/**
44
* Parses a patch into structured data, in the same structure returned by `structuredPatch`.
55
*
6-
* @return a JSON object representation of the a patch, suitable for use with the `applyPatch` method.
6+
* @return a JSON object representation of the patch, suitable for use with the `applyPatch` method.
77
*/
88
export function parsePatch(uniDiff: string): StructuredPatch[] {
99
const diffstr = uniDiff.split(/\n/),

0 commit comments

Comments
 (0)