1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-18 15:17:34 +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
2 changed files with 3 additions and 3 deletions

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