Skip to content

Commit fe8c8ad

Browse files
committed
tutorial: "an trait" -> "a trait"
1 parent bcb6a68 commit fe8c8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ trait to_str {
24342434

24352435
## Implementation
24362436

2437-
To actually implement an trait for a given type, the `impl` form
2437+
To actually implement a trait for a given type, the `impl` form
24382438
is used. This defines implementations of `to_str` for the `int` and
24392439
`~str` types.
24402440

@@ -2533,7 +2533,7 @@ impl int: eq {
25332533
Notice that `equals` takes an `int` argument, rather than a `self` argument, in
25342534
an implementation for type `int`.
25352535

2536-
## Casting to an trait type
2536+
## Casting to a trait type
25372537

25382538
The above allows us to define functions that polymorphically act on
25392539
values of *an* unknown type that conforms to a given trait.

0 commit comments

Comments
 (0)