Skip to content

Commit fa5fb14

Browse files
authored
Merge pull request basarat#327 from randylevy/update-typos-and-grammar
Update typos and grammar
2 parents 0882581 + 0a86931 commit fa5fb14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

code/types/freshness/index-signatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ module jsland {
138138
}
139139

140140
const failsSilently: NestedCSS = {
141-
colour: 'red', // No error is `colour` is a valid string selector
141+
colour: 'red', // No error as `colour` is a valid string selector
142142
}
143143
}
144144

docs/styleguide/styleguide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> An unofficial TypeScript StyleGuide
44
5-
People have asked me for my opinions on this. Personally I don't enforce these a lot my teams and projects but it does help to have these mentioned as a tie breaker when someone feels the need to have such strong consistency. There are other things that I feel much more strongly about and those are covered in the [tips chapter](../tips/main.md) (e.g. type assertion is bad, property setters are bad) 🌹.
5+
People have asked me for my opinions on this. Personally I don't enforce these a lot on my teams and projects but it does help to have these mentioned as a tie breaker when someone feels the need to have such strong consistency. There are other things that I feel much more strongly about and those are covered in the [tips chapter](../tips/main.md) (e.g. type assertion is bad, property setters are bad) 🌹.
66

77
Key Sections:
88

docs/types/discriminated-unions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function area(s: Shape) {
109109

110110
### strictNullChecks
111111

112-
If using strictNullChecks and doing exhaustive checks you should return the `_exhaustiveCheck` variable (of type `never`) as well, otherwise TypeScirpt infers a possible return of `undefined`. So:
112+
If using strictNullChecks and doing exhaustive checks you should return the `_exhaustiveCheck` variable (of type `never`) as well, otherwise TypeScript infers a possible return of `undefined`. So:
113113

114114
```ts
115115
function area(s: Shape) {

docs/types/index-signatures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Try not to mix string indexers with *valid* values this way. E.g. a typo in the
229229

230230
```js
231231
const failsSilently: NestedCSS = {
232-
colour: 'red', // No error is `colour` is a valid string selector
232+
colour: 'red', // No error as `colour` is a valid string selector
233233
}
234234
```
235235

0 commit comments

Comments
 (0)