From e9a8b80a4e11fcce0550b4eb94be85c92f27ef9e Mon Sep 17 00:00:00 2001 From: Lokathor Date: Sat, 15 Dec 2018 20:45:25 -0700 Subject: [PATCH] static_assert -> const_assert --- .../01-quirks/{05-static_asserts.md => 05-const_asserts.md} | 5 +++-- book/src/SUMMARY.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) rename book/src/01-quirks/{05-static_asserts.md => 05-const_asserts.md} (95%) 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)