From 796893a2625cc4d1dd47286dc180f7933a915e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Sun, 29 Dec 2024 01:16:01 +0200 Subject: [PATCH] doc: replace references from Schema, not reachable outside of derive context --- docs/rustdoc_include/borsh_schema.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/rustdoc_include/borsh_schema.md b/docs/rustdoc_include/borsh_schema.md index 3f9901167..bc8599add 100644 --- a/docs/rustdoc_include/borsh_schema.md +++ b/docs/rustdoc_include/borsh_schema.md @@ -37,13 +37,13 @@ struct A { ###### syntax -Attribute takes literal string value, which is the syn's [Path] to `borsh` crate used. +Attribute takes literal string value, which is the syn's [Path](https://docs.rs/syn/2.0.92/syn/struct.Path.html) to `borsh` crate used. ###### usage Attribute is optional. -1. If the attribute is not provided, [crate_name](proc_macro_crate::crate_name) is used to find a version of `borsh` +1. If the attribute is not provided, [crate_name](https://docs.rs/proc-macro-crate/3.2.0/proc_macro_crate/fn.crate_name.html) is used to find a version of `borsh` in `[dependencies]` of the relevant `Cargo.toml`. If there is no match, a compilation error, similar to the following, is raised: ```bash @@ -236,7 +236,7 @@ where ###### syntax -Each of `declaration` and `definitions` nested sub-attributes takes literal string value, which is a syn's [ExprPath](syn::ExprPath). +Each of `declaration` and `definitions` nested sub-attributes takes literal string value, which is a syn's [ExprPath](https://docs.rs/syn/latest/syn/struct.ExprPath.html). Currently both `declaration` and `definitions` are required to be specified at the same time.