Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@niupilot
Copy link
Contributor

@niupilot niupilot bot commented Oct 11, 2025

Summary

Added documentation for the <- append operator syntax to the quick start guide as requested in #2107.

Changes

  • Added a new subsection "Appending to slices" under the Slices section in doc/docs.md
  • Documented all three forms of the <- append operator:
    • a <- v - append single element
    • a <- v1, v2, v3 - append multiple elements
    • a <- b... - append another slice
  • Included comparison with Go's append() function for clarity

Related Issue

Closes #2107

Generated with codeagent

Added documentation for the <- operator used for appending to slices,
which provides a more intuitive syntax than Go's append() function.

The documentation covers:
- Single element append: a <- v
- Multiple elements append: a <- v1, v2, v3
- Slice append: a <- b...

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: niupilot <[email protected]>
@codecov
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.33%. Comparing base (019f296) to head (a5c0554).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2459   +/-   ##
=======================================
  Coverage   93.33%   93.33%           
=======================================
  Files          34       34           
  Lines       11608    11608           
=======================================
  Hits        10834    10834           
  Misses        609      609           
  Partials      165      165           

☔ 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.

@xushiwei xushiwei merged commit cc58c16 into main Oct 11, 2025
29 checks passed
@xushiwei xushiwei deleted the codeagent/claude/issue-2107-1760151315 branch October 11, 2025 02:59
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.

Use a <- v instead of a = append(a, v)

2 participants