2023-07-11
export const main = (name: string) => {
console.log(name);
};
main("UserName");
$ git diff > ./patch
$ cat ./patch
diff --git a/datetime.ts b/datetime.ts
index 3f8ce3b99..443a5223b 100644
--- a/datetime.ts
+++ b/datetime.ts
@@ -1,5 +1,5 @@
export const main = (name: string) => {
- console.log(name);
+ console.log(`Hello, ${name}!`);
};
main("UserName");
$ cat ./patch | patch
patching file datetime.ts
$ cat ./datetime.ts
export const main = (name: string) => {
console.log(`Hello, ${name}!`);
};
main("UserName");