Skip to content

Commit 59e0b3b

Browse files
author
lean
committed
docs: fix unexpected newline and space
出现了意外的换行和空格
1 parent deb8522 commit 59e0b3b

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)