mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-12 12:18:06 +02:00
More tiny fixes (#1577)
This commit is contained in:
parent
e765159be1
commit
e41ab44a38
src
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user