@@ -181,8 +181,7 @@ There are several version selector operators you can use:
181181| ` >= ` | Install _ at least_ the provided version. |
182182| ` <= ` | Install _ at most_ the provided version. |
183183| ` ^= ` | Install the latest compatible version according to [ semver] ( https://semver.npmjs.com/ ) . |
184- | ` ~= ` | Install the latest version by increasing the last given digit
185- to the highest version.
184+ | ` ~= ` | Install the latest version by increasing the last given digit to the highest version. |
186185
187186
188187Here are some examples of the ` ^= ` and ` ~= ` operators:
@@ -234,7 +233,7 @@ This can be achieved as follows:
234233
235234``` nim
236235feature "chronos":
237- require "chronos"
236+ requires "chronos"
238237```
239238
240239In this example, ` chronos ` will only be installed when the ` chronos ` feature is activated.
@@ -247,12 +246,12 @@ There are two ways to activate a feature:
247246 ```
2482472 . By activating it in a dependency using the ` [] ` operator:
249248 ``` nim
250- require "awesomeAsyncPackage[chronos]"
249+ requires "awesomeAsyncPackage[chronos]"
251250 ```
252251
253252Multiple features can be activated for a package as follows:
254253``` nim
255- require "awesomeAsyncPackage[chronos, feature2]"
254+ requires "awesomeAsyncPackage[chronos, feature2]"
256255```
257256
258257#### Checking Active Features in Code
@@ -276,13 +275,13 @@ It is useful for requiring development-specific dependencies.
276275For example:
277276``` nim
278277feature "dev":
279- require "unittest2"
278+ requires "unittest2"
280279```
281280
282281Since the ` dev ` feature is used frequently, an alias is available:
283282``` nim
284283dev:
285- require "unittest2"
284+ requires "unittest2"
286285```
287286
288287
0 commit comments