Browse Source

fix(lang): align to new book url convention (#1813)

Sohrab 3 years ago
parent
commit
55e55a2e2f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lang/derive/accounts/src/lib.rs
  2. 1 1
      lang/syn/src/parser/context.rs

+ 1 - 1
lang/derive/accounts/src/lib.rs

@@ -116,7 +116,7 @@ use syn::parse_macro_input;
 ///                         The given space number is the size of the account in bytes, so accounts that hold
 ///                         a variable number of items such as a <code>Vec</code> should allocate sufficient space for all items that may
 ///                         be added to the data structure because account size is fixed.
-///                         Check out the <a href = "https://book.anchor-lang.com/chapter_5/space.html" target = "_blank" rel = "noopener noreferrer">space reference</a>
+///                         Check out the <a href = "https://book.anchor-lang.com/anchor_references/space.html" target = "_blank" rel = "noopener noreferrer">space reference</a>
 ///                         and the <a href = "https://borsh.io/" target = "_blank" rel = "noopener noreferrer">borsh library</a>
 ///                         (which anchor uses under the hood for serialization) specification to learn how much
 ///                         space different data structures require.

+ 1 - 1
lang/syn/src/parser/context.rs

@@ -63,7 +63,7 @@ impl CrateContext {
         {}:{}:{}
         Struct field "{}" is unsafe, but is not documented.
         Please add a `/// CHECK:` doc comment explaining why no checks through types are necessary.
-        See https://book.anchor-lang.com/chapter_3/the_accounts_struct.html#safety-checks for more information.
+        See https://book.anchor-lang.com/anchor_in_depth/the_accounts_struct.html#safety-checks for more information.
                     "#,
                         ctx.file.canonicalize().unwrap().display(),
                         span.start().line,