Skip to content

Commit 258c22f

Browse files
authored
Merge pull request #24 from afsalthaj/simplify
Update docs
2 parents bee6e3e + 961a749 commit 258c22f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/main/tut/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ defined class C
6161
scala> val nonCaseClass = new C
6262
nonCaseClass: C = C@7e3131c8
6363

64-
scala> safeStr"Doesn't work if there is a non-case class $nonCaseClass or $onlyString"
64+
scala> safeStr"Doesn't work if there is a non-case class $nonCaseClass or $string"
6565
<console>:17: error: unable to find a safe instance for class C. Make sure it is a case class or a type that has safe instance.
6666
^
6767
// And don't cheat by `toString`
68-
scala> safeStr"Doesn't work if there is a non-case class ${nonCaseClass.toString} or $onlyString"
69-
<console>:17: error: Identified `toString` being called on the types. Make sure the type has a instance of Safe..
68+
scala> safeStr"Doesn't work if there is a non-case class ${nonCaseClass.toString} or $string"
69+
<console>:17: error: Identified `toString` being called on the types. Make sure the type has a instance of Safe.
7070
^
7171
```
7272

7373
# Concept and example usages.
7474

7575
`safeStr""` is just like `s""` in scala, but it is type safe and _allows only_ types that has a safe instance.
7676

77-
But don't worry. If you have a case class, the macros in `Safe.scala` will automatically derive it's safe instance
78-
as far as all the individual fields has `Safe` instance.
77+
But don't worry. If you have a case class, the macros in `Safe.scala` will automatically derive it's safe instance.
78+
More on this later.
7979

8080
To understand more on the concepts and usages, please go through:
8181

0 commit comments

Comments
 (0)