Skip to content

Commit

Permalink
Merge pull request #1866 from s3bk/master
Browse files Browse the repository at this point in the history
fix accidental <ol>'s
  • Loading branch information
carols10cents authored Mar 20, 2019
2 parents 51053e9 + d74d392 commit 4fb0aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ch03-02-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ which you’d use `isize` or `usize` is when indexing some sort of collection.

> ##### Integer Overflow
>
> Let’s say you have a variable of type `u8` that can hold values between 0 and
> 255. If you try to change the variable to a value outside of that range, such
> Let’s say you have a variable of type `u8` that can hold values between 0 and 255.
> If you try to change the variable to a value outside of that range, such
> as 256, *integer overflow* will occur. Rust has some interesting rules
> involving this behavior. When you’re compiling in debug mode, Rust includes
> checks for integer overflow that causes your program to *panic* at runtime if
Expand Down
4 changes: 2 additions & 2 deletions src/ch12-01-accepting-command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ just learning this concept, let’s implement this capability ourselves.
To enable `minigrep` to read the values of command line arguments we pass to
it, we’ll need a function provided in Rust’s standard library, which is
`std::env::args`. This function returns an iterator of the command line
arguments that were given to `minigrep`. We’ll cover iterators fully in Chapter
13. For now, you only need to know two details about iterators: iterators
arguments that were given to `minigrep`. We’ll cover iterators fully in Chapter 13.
For now, you only need to know two details about iterators: iterators
produce a series of values, and we can call the `collect` method on an iterator
to turn it into a collection, such as a vector, containing all the elements the
iterator produces.
Expand Down

0 comments on commit 4fb0aed

Please sign in to comment.