Fix misleading comment regarding storage struct reference in 06_ArrayAndStruct (#898)#900
Fix misleading comment regarding storage struct reference in 06_ArrayAndStruct (#898)#900goingforstudying-ctrl wants to merge 1 commit intoAmazingAng:mainfrom
Conversation
…AndStruct Changed 'assign a copy of student' to 'assign a reference to student' in Chinese, English, and Japanese versions of readme.md and .sol files. In Solidity, creates a reference to the original storage variable, not a copy. The previous comment was misleading and could confuse learners. Fixes AmazingAng#898
|
Hi @AmazingAng and maintainers! 👋 Just a friendly follow-up on this small documentation fix. It's been a few days since the PR was opened, and I wanted to check if there's anything else needed from my side to move it forward. The change is minimal — just correcting a misleading comment about storage struct references in the tutorial. Happy to make any adjustments if required. Thank you for your time! |
|
Hi @AmazingAng and maintainers! 👋 Just a friendly follow-up on this small documentation fix. It's been a few days since the PR was opened. The change corrects a misleading comment about storage struct reference behavior in the Please let me know if any changes are needed! Thanks for maintaining WTF-Solidity! 🙏 |
Summary
Fixes #898
Changed the misleading comment "assign a copy of student" to "assign a reference to student" in the 06_ArrayAndStruct lesson.
Details
In Solidity, when you write:
becomes a reference to the original storage variable, not a copy. The previous comment incorrectly stated "assign a copy of student", which could confuse learners about how Solidity storage references work.
Files Changed
All language versions (Chinese, English, Japanese) were updated accordingly.