OffchainLabs / OffchainLabs/arbitrum-docs

Docs update request: /stylus-by-example/function

Open
#1,748 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.