Switch statement documentation seems to be wrong.
- Dominant language
- JavaScript
- Stars
- 83
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
On this page: https://imba.io/language/operators
Switch is documented as having a syntax like this:
```
switch status
when "completed"
console.log "This project has been completed"
when "archived"
console.log "This project has been archived"
else
console.log "This project is active"
````
However it appears to _actually_ have a syntax like this (note indented `when`):
````
switch status
when "completed"
console.log "This project has been completed"
when "archived"
console.log "This project has been archived"
else
console.log "This project is active"
````
Contributor guide
Research direction
Start with the operators page at https://imba.io/language/operators and compare the documented switch example with the indentation shown in the issue. Update the example so it reflects the actual switch syntax, then verify that the rendered documentation displays the corrected indentation.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100