Skip to content

Commit f315038

Browse files
authored
Docs: Update os-module.md (#32)
1 parent fe73acd commit f315038

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/os-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function listItems(directory) {
2222
items.forEach((item) => {
2323
const itemPath = path.join(directory, item);
2424
const stats = fs.statSync(itemPath);
25-
console.log(`${item}${stats.isDirectory() ? '目录' : '文件'}`);
25+
console.log(`${item}${stats.isDirectory() ? 'directory' : 'file'}`);
2626
});
2727
}
2828

i18n/zh-cn/docusaurus-plugin-content-docs/current/os-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import path from 'path';
1818

1919
function listItems(directory) {
2020
const items = fs.readdirSync(directory);
21-
22-
items.forEach((item) => {
21+
22+
items.forEach((item) => {
2323
const itemPath = path.join(directory, item);
2424
const stats = fs.statSync(itemPath);
2525
console.log(`${item}${stats.isDirectory() ? '目录' : '文件'}`);

0 commit comments

Comments
 (0)