Skip to content

Commit

Permalink
Merge pull request #250 from wandershui/wandershui-patch-1
Browse files Browse the repository at this point in the history
chore: 注释语义错误
  • Loading branch information
zh-lx authored Jun 11, 2024
2 parents f87cd4a + 52b647d commit 78bd613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ npm install pinyin-pro
// 获取数组格式拼音
pinyin("汉语拼音", { type: "array" }); // ["hàn", "yǔ", "pīn", "yīn"]

// 获取不带音调数组格式拼音
// 获取不带音调格式拼音
pinyin("汉语拼音", { toneType: "none" }); // "han yu pin yin"

// 获取不带音调数组格式拼音
pinyin("汉语拼音", { toneType: "none", type: "array" }); // ["han", "yu", "pin", "yin"]

// 音调以数组形式显示
// 音调以数字形式显示
pinyin("汉语拼音", { toneType: "num" }); // "han4 yu3 pin1 yin1"

// 自动识别多音字
Expand Down

0 comments on commit 78bd613

Please sign in to comment.