Skip to content

Commit ef91511

Browse files
committed
Fixing documentation example since creating a bag takes a list of algorithms
1 parent f83b15c commit ef91511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ to follow modern Java practices and will require some changes to existing code:
6767
Path folder = Paths.get("FolderYouWantToBag");
6868
StandardSupportedAlgorithms algorithm = StandardSupportedAlgorithms.MD5;
6969
boolean includeHiddenFiles = false;
70-
Bag bag = BagCreator.bagInPlace(folder, algorithm, includeHiddenFiles);
70+
Bag bag = BagCreator.bagInPlace(folder, Arrays.asList(algorithm), includeHiddenFiles);
7171
```
7272

7373
##### Read an existing bag (version 0.93 and higher)

0 commit comments

Comments
 (0)