Skip to content

Commit 35f86fe

Browse files
authored
Merge pull request #203 from iliyaZelenko/patch-1
docs: Update example for Vue in README.md
2 parents 8055f30 + 06fda7c commit 35f86fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,21 @@ export class AppDiffComponent implements OnInit {
135135

136136
```vue
137137
<template>
138-
<div v-html="prettyHtml"></div>
138+
<div v-html="prettyHtml" />
139139
</template>
140140
141141
<script>
142142
import { Diff2Html } from "diff2html";
143143
import "diff2html/dist/diff2html.min.css";
144144
145145
export default {
146-
data: function() {
146+
data() {
147147
return {
148148
diffs: "--- a/server/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go\n+++ b/server/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go\n@@ -1035,6 +1035,17 @@ func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (\n \n // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n \n+func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {\n+\tr0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))\n+\tn = int(r0)\n+\tif e1 != 0 {\n+\t\terr = errnoErr(e1)\n+\t}\n+\treturn\n+}\n+\n+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n+\n func read(fd int, p []byte) (n int, err error) {\n \tvar _p0 unsafe.Pointer\n \tif len(p) > 0 {\n"
149149
};
150150
},
151151
computed: {
152-
prettyHtml: function() {
152+
prettyHtml() {
153153
return Diff2Html.getPrettyHtml(this.diffs, {
154154
inputFormat: "diff",
155155
showFiles: true,

0 commit comments

Comments
 (0)