Skip to content

Commit 1f3c0ac

Browse files
bebeside77yw.kang
and
yw.kang
authored
Fix README.md Render difference code example (#760)
Co-authored-by: yw.kang <[email protected]>
1 parent 95d4c0b commit 1f3c0ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public class Main {
200200
#### HTML
201201
202202
```java
203-
String htmlRender = new HtmlRender("Changelog", "http://deepoove.com/swagger-diff/stylesheets/demo.css");
203+
HtmlRender htmlRender = new HtmlRender("Changelog", "http://deepoove.com/swagger-diff/stylesheets/demo.css");
204204
FileOutputStream outputStream = new FileOutputStream("testDiff.html");
205205
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
206206
htmlRender.render(diff, outputStreamWriter);
@@ -209,7 +209,7 @@ htmlRender.render(diff, outputStreamWriter);
209209
#### Markdown
210210
211211
```java
212-
JsonRender markdownRender = new MarkdownRender();
212+
MarkdownRender markdownRender = new MarkdownRender();
213213
FileOutputStream outputStream = new FileOutputStream("testDiff.md");
214214
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
215215
markdownRender.render(diff, outputStreamWriter);
@@ -218,7 +218,7 @@ markdownRender.render(diff, outputStreamWriter);
218218
#### Asciidoc
219219
220220
```java
221-
JsonRender asciidocRender = new AsciidocRender();
221+
AsciidocRender asciidocRender = new AsciidocRender();
222222
FileOutputStream outputStream = new FileOutputStream("testDiff.adoc");
223223
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
224224
asciidocRender.render(diff, outputStreamWriter);

0 commit comments

Comments
 (0)