OffchainLabs / OffchainLabs/arbitrum-docs
Docs update request: /stylus-by-example/function
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 252
- Forks
- 453
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 27
Description
Source: https://docs.arbitrum.io/stylus-by-example/function
In the example code below, should "#[external]" be changed to "#[public]" or not?
#[external]. <-------
impl Contract {
// Define an external function to get the owner of the contract
pub fn owner(&self) -> Address {
self.owner.get()
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the source page at https://docs.arbitrum.io/stylus-by-example/function and inspect the example in its current Stylus context. Compare the #[external] and #[public] attributes with the current Stylus documentation or examples, then update the page so the attribute and surrounding explanation are correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100