Skip to content

Commit f17c552

Browse files
committed
Update README.md
Syntax highlighting for Scala code snippets.
1 parent d553b21 commit f17c552

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ you may need to create a connection pool of `com.dongxiguo.memcontinuationed.Mem
2929

3030
## A sample to use Memcontinuationed
3131

32+
```scala
3233
import com.dongxiguo.memcontinuationed.Memcontinuationed
3334
import com.dongxiguo.memcontinuationed.StorageAccessor
3435
import java.io._
@@ -84,6 +85,7 @@ you may need to create a connection pool of `com.dongxiguo.memcontinuationed.Mem
8485
new String(result, "UTF-8")
8586
}
8687
}
88+
```
8789

8890
There is something you need to know:
8991

@@ -95,6 +97,7 @@ There is something you need to know:
9597

9698
Add these lines to your `build.sbt` if you use [Sbt](http://www.scala-sbt.org/):
9799

100+
```scala
98101
libraryDependencies += "com.dongxiguo" %% "memcontinuationed" % "0.3.2"
99102

100103
libraryDependencies <++= scalaBinaryVersion { bv =>
@@ -117,7 +120,7 @@ Add these lines to your `build.sbt` if you use [Sbt](http://www.scala-sbt.org/):
117120
}
118121

119122
scalacOptions += "-P:continuations:enable"
120-
123+
```
121124

122125
### Requirement
123126

0 commit comments

Comments
 (0)