Skip to content

Commit 1387c57

Browse files
committed
update Clear flag documentation
closes #2
1 parent 1599066 commit 1387c57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The behaviour of writing can be configured with some bitset flags
5454

5555
The options are
5656

57-
- `Clear` which clears existing metadata before writing the new
57+
- `Clear` which indicates that all existing tags not present in the new map should be removed
5858
- `DiffBeforeWrite` which won't modify the file on disk if the new metadata is the same as the old
5959

6060
The options can be combined the with the bitwise `OR` operator (`|`)

taglib.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func ReadProperties(path string) (Properties, error) {
225225
type WriteOption uint8
226226

227227
const (
228-
// Clear indicates that all existing tags not present in the map should be removed.
228+
// Clear indicates that all existing tags not present in the new map should be removed.
229229
Clear WriteOption = 1 << iota
230230

231231
// DiffBeforeWrite enables comparison before writing to disk.

0 commit comments

Comments
 (0)