Skip to content

Commit 2f22d57

Browse files
Update README formatting
1 parent a3edff0 commit 2f22d57

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
This logic was originally developed in the [sbt-tpolecat](https://github.com/typelevel/sbt-tpolecat) sbt plugin, and this library is intended to enable the reuse of that logic in other build tool plugins, for example [sbt-typelevel](https://github.com/typelevel/sbt-typelevel) and [mill-tpolecat](https://github.com/DavidGregory084/mill-tpolecat).
66

7-
87
## Usage
98

109
This library is published for Scala 2.12.x, 2.13.x and 3.1.x:
@@ -24,25 +23,25 @@ This library offers functions for filtering proposed Scala compiler options acco
2423

2524
```scala
2625
scalacOptions := ScalacOptions.tokensForVersion(
27-
ScalaVersion.V3_1_0, // the Scala compiler major, minor, patch version
28-
ScalacOptions.default // a curated default option set
26+
ScalaVersion.V3_1_0, // the Scala compiler major, minor, patch version
27+
ScalacOptions.default // a curated default option set
2928
) // returns a Seq[String] of Scala compiler options
3029

3130
ScalacOptions.optionsForVersion(
32-
ScalaVersion.V3_1_0,
33-
ScalacOptions.default
31+
ScalaVersion.V3_1_0,
32+
ScalacOptions.default
3433
) // returns a Set[ScalacOption]
3534
```
3635

3736
A shorthand for using the default option set is also provided:
3837

3938
```scala
4039
scalacOptions := ScalacOptions.defaultTokensForVersion(
41-
ScalaVersion.V3_1_0
40+
ScalaVersion.V3_1_0
4241
) // returns a Seq[String] of Scala compiler options based on the default option set
4342

4443
ScalacOptions.defaultOptionsForVersion(
45-
ScalaVersion.V3_1_0
44+
ScalaVersion.V3_1_0
4645
) // returns a Set[ScalacOption] based on the default option set
4746
```
4847

@@ -52,4 +51,4 @@ Participants are expected to follow the [Scala Code of Conduct](https://www.scal
5251

5352
### License
5453

55-
All code in this repository is licensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE).
54+
All code in this repository is licensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE).

0 commit comments

Comments
 (0)