From c884e5c5131038ed3abb8e546646e96a339d3457 Mon Sep 17 00:00:00 2001 From: sunface Date: Thu, 3 Mar 2022 14:00:49 +0800 Subject: [PATCH] add toc to readme.md --- Readme.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 7a7cd43..da0ae1d 100644 --- a/Readme.md +++ b/Readme.md @@ -11,7 +11,25 @@ This book was designed for easily diving into Rust,and it's very easy to use: - Difficulty from easy to super hard: easy 🌟 medium 🌟🌟 hard 🌟🌟🌟 super hard 🌟🌟🌟🌟 - Both English and Chinese are supported -## Indexes - - +## ToC +- [Variables](src/variables.md) +- [Basic Types](src/basic-types/intro.md) + - [Numbers](src/basic-types/numbers.md) + - [Char, Bool and Unit](src/basic-types/char-bool-unit.md) + - [Statements and Expressions](src/basic-types/statements-expressions.md) + - [Functions](src/basic-types/functions.md) +- [Ownership and Borrowing](src/ownership/intro.md) + - [Ownership](src/ownership/ownership.md) + - [Reference and Borrowing](src/ownership/borrowing.md) +- [Compound Types](src/compound-types/intro.md) + - [string](src/compound-types/string.md) + - [Array](src/compound-types/array.md) + - [Slice](src/compound-types/slice.md) + - [Tuple](src/compound-types/tuple.md) + - [Struct](src/compound-types/struct.md) + - [Enum](src/compound-types/enum.md) +- [Flow Control](src/flow-control.md) +- [Pattern Match](src/pattern-match/intro.md) + - [match, matches! and if let](src/pattern-match/match-iflet.md) + - [Patterns](src/pattern-match/patterns.md)