From 081722bb747b74041f2c7e5faf1aa4b9db1de266 Mon Sep 17 00:00:00 2001 From: harris-miller Date: Sun, 8 Oct 2023 16:05:17 -0600 Subject: [PATCH] typo --- test/max.test.ts | 2 +- test/maxBy.test.ts | 2 +- test/min.test.ts | 2 +- test/minBy.test.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/max.test.ts b/test/max.test.ts index e76a02ee..e22ad549 100644 --- a/test/max.test.ts +++ b/test/max.test.ts @@ -8,7 +8,7 @@ expectType<1 | 2>(max(1, 2)); const a: number = 1; const b: number = 2; expectType(max(a, b)); -// so I don't have to make a bunch of variables, we can just do that cast inline +// you can also upcast inline to get the same result expectType(max(1 as number, 2 as number)); // now check the other Ord types expectType(max('a' as string, 'b' as string)); diff --git a/test/maxBy.test.ts b/test/maxBy.test.ts index bdf2c05e..5b0447b8 100644 --- a/test/maxBy.test.ts +++ b/test/maxBy.test.ts @@ -14,7 +14,7 @@ expectType<1 | 2>(maxBy(Math.abs, 1, 2)); const a: number = 1; const b: number = 2; expectType(maxBy(Math.abs, a, b)); -// so can also upcast inline to get the same result +// you can also upcast inline to get the same result expectType(maxBy(Math.abs, 1 as number, 2 as number)); // now check the other Ord types expectType(maxBy(prop('str'), {} as Obj, {} as Obj)); diff --git a/test/min.test.ts b/test/min.test.ts index fd116b3b..d6bdfa29 100644 --- a/test/min.test.ts +++ b/test/min.test.ts @@ -8,7 +8,7 @@ expectType<1 | 2>(min(1, 2)); const a: number = 1; const b: number = 2; expectType(min(a, b)); -// so I don't have to make a bunch of variables, we can just do that cast inline +// you can also upcast inline to get the same result expectType(min(1 as number, 2 as number)); // now check the other Ord types expectType(min('a' as string, 'b' as string)); diff --git a/test/minBy.test.ts b/test/minBy.test.ts index cc39459e..87f71797 100644 --- a/test/minBy.test.ts +++ b/test/minBy.test.ts @@ -14,7 +14,7 @@ expectType<1 | 2>(minBy(Math.abs, 1, 2)); const a: number = 1; const b: number = 2; expectType(minBy(Math.abs, a, b)); -// so can also upcast inline to get the same result +// you can also upcast inline to get the same result expectType(minBy(Math.abs, 1 as number, 2 as number)); // now check the other Ord types expectType(minBy(prop('str'), {} as Obj, {} as Obj));