Skip to content

Commit 5f37755

Browse files
committed
Fix typo and example code
1 parent a1ffafc commit 5f37755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/docs/reference/contextual/conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ An implicit conversion is applied automatically by the compiler in three situati
1818

1919
1. If an expression `e` has type `T`, and `T` does not conform to the expression's expected type `S`.
2020
2. In a selection `e.m` with `e` of type `T`, but `T` defines no member `m`.
21-
3. In an application `e.m(args)` with `e` of type `T`, if ``T` does define
21+
3. In an application `e.m(args)` with `e` of type `T`, if `T` does define
2222
some member(s) named `m`, but none of these members can be applied to the arguments `args`.
2323

2424
In the first case, the compiler looks in the implied scope for a an instance of

docs/docs/reference/contextual/instance-defs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The name of an implied instance can be left out. So the implied instance definit
4141
of the last section can also be expressed like this:
4242
```scala
4343
implied for Ord[Int] { ... }
44-
implied [T: Ord] for Ord[List[T]] { ... }
44+
implied [T] given (ord: Ord[T]) for Ord[List[T]] { ... }
4545
```
4646
If the name of an instance is missing, the compiler will synthesize a name from
4747
the type(s) in the `for` clause.

0 commit comments

Comments
 (0)