Skip to content

Commit

Permalink
docs(tutorial-4): fix link syntax (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohrab- authored Apr 13, 2022
1 parent 1adb6a2 commit aff01b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/tutorial-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This macro generates internal anchor code that helps anchor turn the error code

To create an error, use the [`error!`](https://docs.rs/anchor-lang/latest/anchor_lang/prelude/macro.error.html) macro together with an error code. This macro creates an [`AnchorError`](https://docs.rs/anchor-lang/latest/anchor_lang/error/struct.AnchorError.html) that includes helpful information like the file and line the error was created in.

To make writing errors even easier, anchor also provides the [`err!`](https://docs.rs/anchor-lang/latest/anchor_lang/prelude/macro.err.html and the [`require!`](https://docs.rs/anchor-lang/latest/anchor_lang/prelude/macro.require.html macros.
To make writing errors even easier, anchor also provides the [`err!`](https://docs.rs/anchor-lang/latest/anchor_lang/prelude/macro.err.html) and the [`require!`](https://docs.rs/anchor-lang/latest/anchor_lang/prelude/macro.require.html) macros.

## Using the Client

Expand Down

0 comments on commit aff01b9

Please sign in to comment.