1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-20 15:08:02 +02:00

More tiny fixes (#1577)

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

View File

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

View File

@ -47,7 +47,7 @@ What remains for you is to implement the `parse_field` function.
{{#include exercise.rs:parse_field }} {{#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 // 2. Based on the wire type, build a Field, consuming as many bytes as
// necessary. // necessary.
// 3. Return the field, and any un-consumed bytes. // 3. Return the field, and any un-consumed bytes.

View File

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

View File

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