Skip to content

docs: update defer in loops documentation#1422

Merged
xushiwei merged 1 commit intomainfrom
xgopilot/claude/issue-1421-1764211995
Nov 28, 2025
Merged

docs: update defer in loops documentation#1422
xushiwei merged 1 commit intomainfrom
xgopilot/claude/issue-1421-1764211995

Conversation

@xgopilot
Copy link
Contributor

@xgopilot xgopilot bot commented Nov 27, 2025

Requested by @luoliwoshang

Summary

After PR #1348, LLGo now supports defer within loops. This PR updates the documentation to reflect this change.

Changes

  • Updated CLAUDE.md to reflect that LLGo now supports defer in loops, matching Go's semantics
  • Removed the outdated note stating "LLGo intentionally does not support defer in loops"
  • Added context about the semantics and performance considerations

Note

README.md already had the correct information in the Defer section (line 264), so no changes were needed there.

Fixes #1421

Generated with codeagent

After PR #1348, LLGo now supports defer within loops. Updated the
documentation to reflect this change and remove the outdated note
stating that defer in loops was not supported.

Fixes #1421

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.59%. Comparing base (66f99bb) to head (f813a07).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1422   +/-   ##
=======================================
  Coverage   90.59%   90.59%           
=======================================
  Files          43       43           
  Lines       11400    11400           
=======================================
  Hits        10328    10328           
  Misses        911      911           
  Partials      161      161           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xushiwei xushiwei merged commit b62b732 into main Nov 28, 2025
42 checks passed
@xgopilot xgopilot bot deleted the xgopilot/claude/issue-1421-1764211995 branch November 28, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update doc for defer can use in loop

2 participants