From cb2ae44e6aa2113a579f45cae89000aed7e98b42 Mon Sep 17 00:00:00 2001 From: Guillaume Yu Thiolliere Date: Wed, 31 Jan 2024 16:49:49 +0900 Subject: [PATCH] Update rust-basics.md --- content/md/en/docs/learn/rust-basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/md/en/docs/learn/rust-basics.md b/content/md/en/docs/learn/rust-basics.md index fae3279fa..cb01e8fa1 100644 --- a/content/md/en/docs/learn/rust-basics.md +++ b/content/md/en/docs/learn/rust-basics.md @@ -40,7 +40,7 @@ These macros allow you to focus on writing idiomatic Rust and application-specif Rust macros are a powerful tool to help ensure certain requirements are met (without re-writing code) such as the logic to be formatted in a specific way, specific checks are made, or some logic consists of specific data structures. This is especially useful to help developers write code that can integrate with the complexity of a Substrate runtime. -For example, the `#[frame_system::pallet]` macro is required in all FRAME pallets to help you correctly implement certain required attributes-such as storage items or externally callable functions-and make it compatible with the build process in `construct_runtime`. +For example, the `#[frame_support::pallet]` macro is required in all FRAME pallets to help you correctly implement certain required attributes-such as storage items or externally callable functions-and make it compatible with the build process in `construct_runtime`. Developing Substrate runtimes involves heavy use of Rust's attribute macros, which come in two flavors: derive attributes and custom attributes. When you're getting started with Substrate, it isn't so important to know exactly how they work, but rather to know that they exist that they empower you to write correct runtime code.