kadena-io / pact

The Pact Smart Contract Language
https://docs.kadena.io/build/pact
BSD 3-Clause "New" or "Revised" License
579 stars 100 forks source link

Fix incorrect examples in docs #1290

Closed thomashoneyman closed 2 months ago

thomashoneyman commented 1 year ago

Originally noticed by @CryptoPascal31, there are several incorrect examples and descriptions in the natives docs. These are a couple of them. Namely:

For the latter, you can trivially verify the error with:

➜ nix run github:thomashoneyman/pact-nix#pact
pact> (is-principal 'k:12345)
(interactive):1:17: error: Expected: atom, Expected: list, Expected: literal, Unexpected end of input
pact> (is-principal "k:12345")
false 

For maintainers: for documentation PRs in which I'm updating the Haskell code, should I be committing the updated .md files as well? Or just the Haskell? It's not clear to me what is generated in the release process.


PR checklist:

Additionally, please justify why you should or should not do the following: