diff --git a/book/src/01-quirks/05-static_asserts.md b/book/src/01-quirks/05-const_asserts.md similarity index 95% rename from book/src/01-quirks/05-static_asserts.md rename to book/src/01-quirks/05-const_asserts.md index 5c74184..0827a85 100644 --- a/book/src/01-quirks/05-static_asserts.md +++ b/book/src/01-quirks/05-const_asserts.md @@ -1,10 +1,11 @@ -# Static Asserts +# Constant Assertions Have you ever wanted to assert things _even before runtime_? We all have, of course. Particularly when the runtime machine is a poor little GBA, we'd like to have the machine doing the compile handle as much checking as possible. -Enter [static assertions](https://docs.rs/static_assertions/). +Enter the [static assertions](https://docs.rs/static_assertions/) crate, which +provides a way to let you assert on a `const` expression. This is an amazing crate that you should definitely use when you can. diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md index 08bf812..46168b3 100644 --- a/book/src/SUMMARY.md +++ b/book/src/SUMMARY.md @@ -12,7 +12,7 @@ * [Fixed Only](01-quirks/02-fixed_only.md) * [Volatile Destination](01-quirks/03-volatile_destination.md) * [Newtype](01-quirks/04-newtype.md) - * [Static Asserts](01-quirks/05-static_asserts.md) + * [Static Asserts](01-quirks/05-const_asserts.md) * [Concepts](02-concepts/00-index.md) * [CPU](02-concepts/01-cpu.md) * [BIOS](02-concepts/02-bios.md)