Skip to content

Commit

Permalink
docs(readme): improve terminology in replace ex
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Jun 11, 2024
1 parent fc0c3b1 commit 2399c4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ The command `replace` can do two related things:
The text can be any continuous part of the value, including the whole value.
2. Set a property's value only when it is empty.

Let's start with replacing part of a value's text.
Let's start with replacing part of a value.

```sh
> initool get tests/replace-part.ini
Expand All @@ -189,7 +189,7 @@ empty=
> initool replace tests/replace-part.ini "" key value string > updated.ini
```

The text of `updated.ini` will be:
The contents of `updated.ini` will be:

```ini
key=A longer string.
Expand All @@ -199,13 +199,13 @@ empty=

Now let's set the value of the key `empty`,
but only if it is actually empty.
Use an empty string as the text.
Use an empty string as the `<text>` argument.

```sh
> initool replace tests/replace-part.ini "" empty "" no > updated.ini
```

The text of `updated.ini` will be:
The contents of `updated.ini` will be:

```ini
key=A longer value.
Expand Down

0 comments on commit 2399c4f

Please sign in to comment.