From e41ab44a38e22cc435b7adb50b41d6c197209acf Mon Sep 17 00:00:00 2001 From: Marshall Pierce <575695+marshallpierce@users.noreply.github.com> Date: Mon, 11 Dec 2023 14:13:54 -0700 Subject: [PATCH] More tiny fixes (#1577) --- src/borrowing/exercise.md | 2 +- src/slices-and-lifetimes/exercise.md | 2 +- src/smart-pointers/exercise.md | 2 +- third_party/rust-on-exercism/health-statistics.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/borrowing/exercise.md b/src/borrowing/exercise.md index eacf4715..ada1091f 100644 --- a/src/borrowing/exercise.md +++ b/src/borrowing/exercise.md @@ -7,7 +7,7 @@ minutes: 30 {{#include ../../third_party/rust-on-exercism/health-statistics.md}} Copy the code below to and fill in the missing -methods: +method: ```rust // TODO: remove this when you're done with your implementation. diff --git a/src/slices-and-lifetimes/exercise.md b/src/slices-and-lifetimes/exercise.md index f1a543d4..f46c314c 100644 --- a/src/slices-and-lifetimes/exercise.md +++ b/src/slices-and-lifetimes/exercise.md @@ -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. diff --git a/src/smart-pointers/exercise.md b/src/smart-pointers/exercise.md index f30562e1..bd87f4de 100644 --- a/src/smart-pointers/exercise.md +++ b/src/smart-pointers/exercise.md @@ -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}} ``` diff --git a/third_party/rust-on-exercism/health-statistics.md b/third_party/rust-on-exercism/health-statistics.md index a00e4a9b..72b2a774 100644 --- a/third_party/rust-on-exercism/health-statistics.md +++ b/third_party/rust-on-exercism/health-statistics.md @@ -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.