From a2f2be8369abe3911cdf54d82074a43d9f230360 Mon Sep 17 00:00:00 2001 From: funkill2 Date: Tue, 2 Apr 2024 04:00:14 +0300 Subject: [PATCH] update original --- rustbook-en/src/ch08-01-vectors.md | 2 +- rustbook-en/src/ch12-05-working-with-environment-variables.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rustbook-en/src/ch08-01-vectors.md b/rustbook-en/src/ch08-01-vectors.md index 85d3bcfe4..d6d72de06 100644 --- a/rustbook-en/src/ch08-01-vectors.md +++ b/rustbook-en/src/ch08-01-vectors.md @@ -202,7 +202,7 @@ some of the columns in the row contain integers, some floating-point numbers, and some strings. We can define an enum whose variants will hold the different value types, and all the enum variants will be considered the same type: that of the enum. Then we can create a vector to hold that enum and so, ultimately, -holds different types. We’ve demonstrated this in Listing 8-9. +hold different types. We’ve demonstrated this in Listing 8-9. ```rust {{#rustdoc_include ../listings/ch08-common-collections/listing-08-09/src/main.rs:here}} diff --git a/rustbook-en/src/ch12-05-working-with-environment-variables.md b/rustbook-en/src/ch12-05-working-with-environment-variables.md index 4e6b40fb3..263c80cd0 100644 --- a/rustbook-en/src/ch12-05-working-with-environment-variables.md +++ b/rustbook-en/src/ch12-05-working-with-environment-variables.md @@ -113,7 +113,7 @@ function, as shown in Listing 12-22. This still won’t compile yet. Finally, we need to check for the environment variable. The functions for working with environment variables are in the `env` module in the standard library, so we bring that module into scope at the top of *src/lib.rs*. Then -we’ll use the `var` function from the `env` module to check to see if any value +we’ll use the `var` function from the `env` module to check if any value has been set for an environment variable named `IGNORE_CASE`, as shown in Listing 12-23.