From 7cdcc02aaf4ca134c17ff147cf9baf54ff1b38e9 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Sat, 15 Dec 2018 16:53:03 -0700 Subject: [PATCH] Move "newtype" into the "quirks" --- .../{06-help_and_resources.md => 05-help_and_resources.md} | 0 .../05-newtype.md => 01-quirks/04-newtype.md} | 6 ++---- book/src/SUMMARY.md | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) rename book/src/00-introduction/{06-help_and_resources.md => 05-help_and_resources.md} (100%) rename book/src/{00-introduction/05-newtype.md => 01-quirks/04-newtype.md} (96%) diff --git a/book/src/00-introduction/06-help_and_resources.md b/book/src/00-introduction/05-help_and_resources.md similarity index 100% rename from book/src/00-introduction/06-help_and_resources.md rename to book/src/00-introduction/05-help_and_resources.md diff --git a/book/src/00-introduction/05-newtype.md b/book/src/01-quirks/04-newtype.md similarity index 96% rename from book/src/00-introduction/05-newtype.md rename to book/src/01-quirks/04-newtype.md index d711917..07244c9 100644 --- a/book/src/00-introduction/05-newtype.md +++ b/book/src/01-quirks/04-newtype.md @@ -1,9 +1,7 @@ # Newtype -There's one thing I want to get out of the way near the start of the book and it -didn't really have a good fit anywhere else in the book so it goes right here. - -We're talking about the "Newtype Pattern"! +There's a great Zero Cost abstraction that we'll be using a lot that you might +not already be familiar with: we're talking about the "Newtype Pattern"! Now, I told you to read the Rust Book before you read this book, and I'm sure you're all good students who wouldn't sneak into this book without doing the diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md index 4fc9ca4..6de4af7 100644 --- a/book/src/SUMMARY.md +++ b/book/src/SUMMARY.md @@ -6,12 +6,12 @@ * [Book Goals and Style](00-introduction/02-goals_and_style.md) * [Development Setup](00-introduction/03-development-setup.md) * [Hello, Magic](00-introduction/04-hello-magic.md) - * [Newtype](00-introduction/05-newtype.md) - * [Help and Resources](00-introduction/06-help_and_resources.md) + * [Help and Resources](00-introduction/05-help_and_resources.md) * [Quirks](01-quirks/00-index.md) * [No Std](01-quirks/01-no_std.md) * [Fixed Only](01-quirks/02-fixed_only.md) * [Volatile Destination](01-quirks/03-volatile_destination.md) + * [Newtype](01-quirks/04-newtype.md) * [Concepts](02-concepts/00-index.md) * [CPU](02-concepts/01-cpu.md) * [BIOS](02-concepts/02-bios.md)