Skip to content

Commit eeec4a7

Browse files
committed
Merge pull request #4322 from cpeterso/incoming-doc-typos
doc: Fix some typos in the tutorial and reference manual
2 parents 84a37a3 + 16797fd commit eeec4a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,12 +3258,12 @@ crate name the crate is given a default name that matches the source file,
32583258
with the extension removed. In that case, to turn on logging for a program
32593259
compiled from, e.g. `helloworld.rs`, `RUST_LOG` should be set to `helloworld`.
32603260

3261-
As a convenience, the logging spec can also be set to a special psuedo-crate,
3261+
As a convenience, the logging spec can also be set to a special pseudo-crate,
32623262
`::help`. In this case, when the application starts, the runtime will
32633263
simply output a list of loaded modules containing log expressions, then exit.
32643264

32653265
The Rust runtime itself generates logging information. The runtime's logs are
3266-
generated for a number of artificial modules in the `::rt` psuedo-crate,
3266+
generated for a number of artificial modules in the `::rt` pseudo-crate,
32673267
and can be enabled just like the logs for any standard module. The full list
32683268
of runtime logging modules follows.
32693269

@@ -3341,7 +3341,7 @@ have come and gone during the course of Rust's development:
33413341

33423342
* The Newsqueak (1988), Alef (1995), and Limbo (1996) family. These
33433343
languages were developed by Rob Pike, Phil Winterbottom, Sean Dorward and
3344-
others in their group at Bell labs Computing Sciences Research Center
3344+
others in their group at Bell Labs Computing Sciences Research Center
33453345
(Murray Hill, NJ, USA).
33463346

33473347
* The Napier (1985) and Napier88 (1988) family. These languages were

doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type system and memory model, generics, and modules. [Additional
3636
tutorials](#what-next) cover specific language features in greater
3737
depth.
3838

39-
This tutorial assumes that the reader is already familiar with one or more
39+
This tutorial assumes that the reader is already familiar with one or
4040
more languages in the C family. Understanding of pointers and general
4141
memory management techniques will help.
4242

@@ -1284,7 +1284,7 @@ distinct type. They support most of the same allocation options as
12841284
vectors, though the string literal without a storage sigil (for
12851285
example, `"foo"`) is treated differently than a comparable vector
12861286
(`[foo]`). Whereas plain vectors are stack-allocated fixed-length
1287-
vectors, plain strings are region pointers to read-only
1287+
vectors, plain strings are borrowed pointers to read-only (static)
12881288
memory. All strings are immutable.
12891289

12901290
~~~
@@ -1947,7 +1947,7 @@ trait Printable {
19471947
Traits may be implemented for specific types with [impls]. An impl
19481948
that implements a trait includes the name of the trait at the start of
19491949
the definition, as in the following impls of `Printable` for `int`
1950-
and `~str`.
1950+
and `&str`.
19511951

19521952
[impls]: #functions-and-methods
19531953

0 commit comments

Comments
 (0)