diff --git a/docs/reference/go-gno-compatibility.md b/docs/reference/go-gno-compatibility.md index 42ebe3c8ff7..71f46adf836 100644 --- a/docs/reference/go-gno-compatibility.md +++ b/docs/reference/go-gno-compatibility.md @@ -83,7 +83,7 @@ Legend: would not be useful. * `tbd`: whether to include the standard library or not is still up for discussion. -* `todo`: the standard libary is to be added, and +* `todo`: the standard library is to be added, and [contributions are welcome.](https://github.com/gnolang/gno/issues/1267) * `part`: the standard library is partially implemented in Gno, and contributions are welcome to add the missing functionality. diff --git a/docs/reference/rpc-endpoints.md b/docs/reference/rpc-endpoints.md index 790e4c49142..896416c1760 100644 --- a/docs/reference/rpc-endpoints.md +++ b/docs/reference/rpc-endpoints.md @@ -108,7 +108,7 @@ Call with the /consensus\_params path to check the consensus algorithm parameter | `block_height` | String | The block height. | | `consensus_params` | Object | The parameter information. | | `consensus_params.Block` | Object | The block parameters. | -| `consensus_params.Validattor` | Object | The validator parameters. | +| `consensus_params.Validator` | Object | The validator parameters. | ## Get Consensus State diff --git a/docs/reference/standard-library.md b/docs/reference/standard-library.md index 8776c62faf8..8ed6ade4cb6 100644 --- a/docs/reference/standard-library.md +++ b/docs/reference/standard-library.md @@ -14,9 +14,9 @@ Standard libraries packages follow the same semantics as on-chain packages (ie. they don't persist state like realms do) and come as a part of the Gno programming language rather than with the Gno.land chain. -Many standard libaries are near-identical copies of the equivalent Go standard +Many standard libraries are near-identical copies of the equivalent Go standard libraries; in fact, you can check the current status of implementation of each -Go standard libarary on [Go\<\>Gno compatibility](go-gno-compatibility.md). +Go standard library on [Go\<\>Gno compatibility](go-gno-compatibility.md). ## Gathering documentation @@ -70,7 +70,7 @@ repository which has a `go.mod` dependency on `github.com/gnolang/gno`, which can be a simple way to set up your Gno repositories to automatically support `gno` commands (aside from `doc`, also `test`, `run`, etc.). -Another alternative is setting your enviornment variable `GNOROOT` to point to +Another alternative is setting your environment variable `GNOROOT` to point to where you cloned the Gno repository. You can set this in your `~/.profile` file to be automatically set up in your console: @@ -94,7 +94,7 @@ though support is planned to be added. For now, you can inspect the directory New standard libraries may be added by simply creating a new directory (whose path relative to the `stdlibs` directory will be the import path used in Gno programs). Following that, the suggested approach for adding a Go standard -libary is to copy the original files from the Go source tree, and renaming their +library is to copy the original files from the Go source tree, and renaming their extensions from `.go` to `.gno`. > As a small aid, this bash one-liner can be useful to convert all the file @@ -120,7 +120,7 @@ Some things to keep in mind: packages still not available in Gno, such as `fmt` or `encoding/json`. - In the package documentation, specify the Go version from which the library was taken. -- All changes from the Go standard libaries must be explicitly marked, possibly +- All changes from the Go standard libraries must be explicitly marked, possibly with `// XXX` comments as needed. If you intend to create a PR to add a new standard library, remember to update @@ -129,7 +129,7 @@ If you intend to create a PR to add a new standard library, remember to update ## Native bindings Gno has support for "natively-defined functions" exclusively within the standard -libaries. These are functions which are _declared_ in Gno code, but only _defined_ +libraries. These are functions which are _declared_ in Gno code, but only _defined_ in Go. There are generally three reasons why a function should be natively defined: @@ -145,7 +145,7 @@ defined: The takeaway here is that native bindings are a special feature which can be useful to overcome pure Gno limitations, but it is not a substitute for writing -standard libaries in Gno. +standard libraries in Gno. There are three components to a natively bound function in Gno: