docs: align storage reference comments in translations#902
Merged
XdpCs merged 2 commits intoMay 18, 2026
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Spanish and Brazilian Portuguese translations of the 06_ArrayAndStruct lesson to correctly describe Student storage _student = student as creating a storage reference (not a copy), aligning with the fix previously applied in #900.
Changes:
- Update ES + pt-br README snippets to say “reference” instead of “copy” for the
storageassignment. - Update ES
.solcomment to match the correct storage-reference semantics. - Update pt-br
.solto reintroduce the_studentstorage reference declaration before_studentis used.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Languages/pt-br/06_ArrayAndStruct/readme.md | Fixes wording to describe a storage reference instead of a copy. |
| Languages/pt-br/06_ArrayAndStruct/ArrayAndStruct.sol | Updates the method-1 example line to declare a storage reference and fixes the misleading “copy” wording. |
| Languages/es/06_ArreglosyEstructuras_es/readme.md | Fixes wording to describe a reference instead of a copy. |
| Languages/es/06_ArreglosyEstructuras_es/ArrayAndStruct.sol | Fixes wording to describe a reference instead of a copy. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This applies the storage-reference wording fix from #900 to the Spanish and Brazilian Portuguese translations of
06_ArrayAndStruct.Student storage _student = studentcreates a storage reference, not a copy. The existing Spanish and pt-br examples still described it as a copy, which can mislead readers about Solidity storage semantics.Changes
.soland README snippets to say reference instead of copy._studentstorage reference declaration in the Brazilian Portuguese.solsnippet before it is used.Validation
_studentbefore assigning fields.git diff --check.Related: #898, #900