Skip to content

fix: typo of formal expression #1736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/learn/queueing-a-series-of-state-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ setFriendCount(fc => fc * 2);

#### 修复请求计数器 {/*fix-a-request-counter*/}

你正在开发一个艺术市场应用,该应用允许一个用户为一个艺术品同时提交多个订单。每次用户按下“购买”按钮,“等待”计数器应该增加一。三秒后,“等待”计数器应该减少,“完成”计数器应该增加。
你正在开发一个艺术市场应用,该应用允许一个用户为一个艺术品同时提交多个订单。每次用户按下“购买”按钮,“等待”计数器应该增加一点三秒后,“等待”计数器应该减少,“完成”计数器应该增加。

但是,“等待”计数器的行为并不符合预期。当你按下“购买”按钮时,它会减少到 `-1`(这本应该是不可能的)。如果你快速点击两次,两个计数器似乎都会出现无法预测的行为。

Expand Down