1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-05 08:25:26 +02:00

Rename 'designing a library' example (#911)

rename 'designing a library' example

library design in Rust is its own topic that this course does not cover; to avoid confusion, let's stick to describing things in terms of books
This commit is contained in:
Frances Wingerter 2023-07-06 08:40:47 +00:00 committed by GitHub
parent 8df1d74e73
commit 7f03a67a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@
- [Lifetimes in Function Calls](ownership/lifetimes-function-calls.md)
- [Lifetimes in Data Structures](ownership/lifetimes-data-structures.md)
- [Exercises](exercises/day-1/afternoon.md)
- [Designing a Library](exercises/day-1/book-library.md)
- [Storing Books](exercises/day-1/book-library.md)
- [Iterators and Ownership](exercises/day-1/iterators-and-ownership.md)

View File

@ -1,4 +1,4 @@
# Designing a Library
# Storing Books
We will learn much more about structs and the `Vec<T>` type tomorrow. For now,
you just need to know part of its API:
@ -15,7 +15,7 @@ fn main() {
}
```
Use this to create a library application. Copy the code below to
Use this to model a library's book collection. Copy the code below to
<https://play.rust-lang.org/> and update the types to make it compile:
```rust,should_panic