Skip to content

Commit 698042d

Browse files
committed
auto merge of #12421 : Hywan/rust/api_doc, r=alexcrichton
I was reading the code and saw this. Not the best contribution of my life ;-).
2 parents 56cf237 + b734699 commit 698042d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/str.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Unicode string manipulation (`str` type)
1717
Rust's string type is one of the core primitive types of the language. While
1818
represented by the name `str`, the name `str` is not actually a valid type in
1919
Rust. Each string must also be decorated with its ownership. This means that
20-
there are two common kinds of strings in rust:
20+
there are two common kinds of strings in Rust:
2121
2222
* `~str` - This is an owned string. This type obeys all of the normal semantics
2323
of the `~T` types, meaning that it has one, and only one, owner. This
@@ -39,7 +39,7 @@ fn main() {
3939
}
4040
```
4141
42-
From the example above, you can see that rust has 2 different kinds of string
42+
From the example above, you can see that Rust has 2 different kinds of string
4343
literals. The owned literals correspond to the owned string types, but the
4444
"borrowed literal" is actually more akin to C's concept of a static string.
4545
@@ -51,7 +51,7 @@ inferred from the type, these static strings are not mutable.
5151
5252
# Mutability
5353
54-
Many languages have immutable strings by default, and rust has a particular
54+
Many languages have immutable strings by default, and Rust has a particular
5555
flavor on this idea. As with the rest of Rust types, strings are immutable by
5656
default. If a string is declared as `mut`, however, it may be mutated. This
5757
works the same way as the rest of Rust's type system in the sense that if

0 commit comments

Comments
 (0)