1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-12 12:18:06 +02:00

More tiny fixes ()

This commit is contained in:
Marshall Pierce 2023-12-11 14:13:54 -07:00 committed by GitHub
parent e765159be1
commit e41ab44a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions
src
borrowing
slices-and-lifetimes
smart-pointers
third_party/rust-on-exercism

@ -7,7 +7,7 @@ minutes: 30
{{#include ../../third_party/rust-on-exercism/health-statistics.md}}
Copy the code below to <https://play.rust-lang.org/> and fill in the missing
methods:
method:
```rust
// TODO: remove this when you're done with your implementation.

@ -47,7 +47,7 @@ What remains for you is to implement the `parse_field` function.
{{#include exercise.rs:parse_field }}
// 1. Read and unpack the tag.
// 1. Read and unpack the tag, which is a varint.
// 2. Based on the wire type, build a Field, consuming as many bytes as
// necessary.
// 3. Return the field, and any un-consumed bytes.

@ -14,7 +14,7 @@ Implement the following types, so that the given tests pass.
```rust,editable
{{#include exercise.rs:types}}
// Implement `new`, `insert`, and `has`.
// Implement `new`, `insert`, `len`, and `has`.
{{#include exercise.rs:tests}}
```

@ -1,6 +1,6 @@
You're working on implementing a health-monitoring system. As part of that, you
need to keep track of users' health statistics.
You'll start with some stubbed functions in an `impl` block as well as a `User`
struct definition. Your goal is to implement the stubbed out methods on the
You'll start with a stubbed function in an `impl` block as well as a `User`
struct definition. Your goal is to implement the stubbed out method on the
`User` `struct` defined in the `impl` block.