From a4c2be093e695d66d37faeba344c623f5a5db650 Mon Sep 17 00:00:00 2001
From: "Engineering Rel @ Urani"
<162904807+urani-engineering@users.noreply.github.com>
Date: Wed, 27 Mar 2024 09:17:17 -0700
Subject: [PATCH] Clean up
---
chapters/03_anchor.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/chapters/03_anchor.md b/chapters/03_anchor.md
index dbee6ccb..bce0c15a 100644
--- a/chapters/03_anchor.md
+++ b/chapters/03_anchor.md
@@ -124,6 +124,8 @@ pub struct SetData<'info> {
* Constraints can be added through:
+
+
```rust
#[account()]
pub account: AccountType
@@ -142,6 +144,8 @@ pub account: AccountType
* You can use the `require` macro to simplify writting errors.
+
+
```rust
#[program]
mod hello_anchor {
@@ -162,6 +166,7 @@ pub enum MyError {
+
----
### Hello World
@@ -212,16 +217,11 @@ mod hello_anchor {
pub struct Initialize {}
```
-* The way an endpoint is connected to its corresponding Accounts struct is the `ctx` argument in the endpoint.
-
-* The argument is of type `Context` which is generic over an Account struct, i.e., this is where you put the name of your account validation struct (e.g. `Initalize`).
-
-
-----
+* The way an endpoint is connected to its corresponding Accounts struct is the `ctx` argument in the endpoint.
-### Tests
+* The argument is of type `Context` which is generic over an Account struct, i.e., this is where you put the name of your account validation struct (e.g. `Initalize`).