Skip to content

Commit b26672d

Browse files
authored
Merge pull request #1759 from trueNAHO/fix-typos
Fix typos
2 parents 5b11b72 + 1722ff5 commit b26672d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/fn/closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626
// TODO: uncomment the line above and see the compiler error. The compiler
2727
// suggests that we define a closure instead.
2828
29-
// Closures are anonymous, here we are binding them to references
29+
// Closures are anonymous, here we are binding them to references.
3030
// Annotation is identical to function annotation but is optional
3131
// as are the `{}` wrapping the body. These nameless functions
3232
// are assigned to appropriately named variables.

src/std/hash/alt_key_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Any type that implements the `Eq` and `Hash` traits can be a key in `HashMap`.
44
This includes:
55

6-
* `bool` (though not very useful since there is only two possible keys)
6+
* `bool` (though not very useful since there are only two possible keys)
77
* `int`, `uint`, and all variations thereof
88
* `String` and `&str` (protip: you can have a `HashMap` keyed by `String`
99
and call `.get()` with an `&str`)

src/std_misc/file/read_lines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main() {
6262
}
6363
}
6464
65-
// The output is wrapped in a Result to allow matching on errors
65+
// The output is wrapped in a Result to allow matching on errors.
6666
// Returns an Iterator to the Reader of the lines of the file.
6767
fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>>
6868
where P: AsRef<Path>, {

src/std_misc/threads/testcase_mapreduce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use std::thread;
3030
fn main() {
3131
3232
// This is our data to process.
33-
// We will calculate the sum of all digits via a threaded map-reduce algorithm.
33+
// We will calculate the sum of all digits via a threaded map-reduce algorithm.
3434
// Each whitespace separated chunk will be handled in a different thread.
3535
//
3636
// TODO: see what happens to the output if you insert spaces!

0 commit comments

Comments
 (0)