The Sway Book
does not contain any examples regarding std
usage
#2047
Labels
good first issue
Good for newcomers
lib: std
Standard library
P: critical
Should be looked at before anything else
The Sway Book
Everything to do with the Sway Book
Summary
Taking a look at the link to the Sway Book for the standard library there is no usage for any type and instead it points the reader directly at the master branch / latest release tag.
That is absolutely not what documentation should be doing.
It's okay to reference the library as an addition for the reader to familiarize themselves with the workings under the hood however we should not be telling the user to "just read the source code".
Every type in the standard library must have its own section which shows simple usage for various usages e.g. initialization, calling some method on the type etc.
This will reduce the questions and confusion from users because they have no reference for the correct usage of the library.
This happens too often and should be prioritized.
The text was updated successfully, but these errors were encountered: