Skip to content

Commit c1ffbbd

Browse files
authored
Merge pull request #3189 from micpob/patch-15
Fix sentence
2 parents c9bfea0 + 1e23602 commit c1ffbbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/9/en/part9c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,10 @@ For example, consider a page for listing some data, some of which is sensitive a
651651
We might want to be sure that no sensitive data is used or displayed. We could <i>pick</i> the fields of a type we allow to be used to enforce this.
652652
We can do that by using the utility type [Pick](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys).
653653

654-
In our project, we should consider that Ilari might want to create a listing of all his diary entries <i>excluding</i> the comment field since, during a very scary flight, he might end up writing something he wouldn't necessarily want to show anyone else.
654+
In our project, we should consider that Ilari might want to create a listing of all his diary entries <i>excluding</i> the comment field since, during a very scary flight, he might end up writing something he wouldn't necessarily want to show to anyone else.
655655

656656
The [Pick](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys) utility type allows us to choose which fields of an existing type we want to use.
657-
Pick can be used to either construct a completely new type or to inform a function that it should return on runtime.
657+
Pick can be used to either construct a completely new type or to inform a function of what it should return on runtime.
658658
Utility types are a special kind of type, but they can be used just like regular types.
659659

660660
In our case, to create a "censored" version of the *DiaryEntry* for public displays, we can use *Pick* in the function declaration:

0 commit comments

Comments
 (0)