summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index d91ce52..98c1166 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ import org.zwobble.mammoth.Result;
DocumentConverter converter = new DocumentConverter();
Result<String> result = converter.convertToHtml(new File("document.docx"));
String html = result.getValue(); // The generated HTML
-List<String> warnings = result.getWarnings(); // Any warnings during conversion
+Set<String> warnings = result.getWarnings(); // Any warnings during conversion
```
You can also extract the raw text of the document by using `extractRawText`.
@@ -82,7 +82,7 @@ Each paragraph is followed by two newlines.
DocumentConverter converter = new DocumentConverter();
Result<String> result = converter.extractRawText(new File("document.docx"));
String html = result.getValue(); // The raw text
-List<String> warnings = result.getWarnings(); // Any warnings during conversion
+Set<String> warnings = result.getWarnings(); // Any warnings during conversion
```
#### Custom style map
@@ -207,7 +207,7 @@ Represents the result of a conversion. Methods:
* `T getValue()`: the generated text.
-* `List<String> getWarnings()`: any warnings generated during the conversion.
+* `Set<String> getWarnings()`: any warnings generated during the conversion.
## Writing style maps