Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ee8976f

Browse files
authoredAug 17, 2023
Merge pull request #52 from byog/main
docs: fix unexpected newline and space
2 parents deb8522 + 59e0b3b commit ee8976f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎docs/assert.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ let s = 'JavaScript';
228228
setLang(s as const); // 报错
229229
```
230230

231-
上面示例中,`as
232-
const`断言用于变量`s`,就报错了。下面的写法可以更清晰地看出这一点。
231+
上面示例中,`as const`断言用于变量`s`,就报错了。下面的写法可以更清晰地看出这一点。
233232

234233
```typescript
235234
let s1 = 'JavaScript';

‎docs/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ let obj = { foo: 123 };
221221
export = obj;
222222
```
223223

224-
`export = `语句输出的对象,只能使用`import =`语句加载。
224+
`export =`语句输出的对象,只能使用`import =`语句加载。
225225

226226
```typescript
227227
import obj = require('./a');

0 commit comments

Comments
 (0)
Please sign in to comment.