Skip to content

Commit ddcc0d4

Browse files
committed
Refactor to prefer single quotes
1 parent f8e5a0c commit ddcc0d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Internal document type declarations have no representation in xast:
108108

109109
```idl
110110
interface Parent <: UnistParent {
111-
children: [Element | Text | Comment | Doctype | Instruction | Cdata]
111+
children: [Cdata | Comment | Doctype | Element | Instruction | Text]
112112
}
113113
```
114114

@@ -132,7 +132,7 @@ containing a value.
132132

133133
```idl
134134
interface Root <: Parent {
135-
type: "root"
135+
type: 'root'
136136
}
137137
```
138138

@@ -150,10 +150,10 @@ a whole document.
150150

151151
```idl
152152
interface Element <: Parent {
153-
type: "element"
153+
type: 'element'
154154
name: string
155155
attributes: Attributes?
156-
children: [Element | Text | Comment | Instruction | Cdata]
156+
children: [Cdata | Comment | Element | Instruction | Text]
157157
}
158158
```
159159

@@ -229,7 +229,7 @@ reflect XML attribute values exactly as a string.
229229

230230
```idl
231231
interface Text <: Literal {
232-
type: "text"
232+
type: 'text'
233233
}
234234
```
235235

@@ -257,7 +257,7 @@ Yields:
257257

258258
```idl
259259
interface Comment <: Literal {
260-
type: "comment"
260+
type: 'comment'
261261
}
262262
```
263263

@@ -280,7 +280,7 @@ Yields:
280280

281281
```idl
282282
interface Doctype <: Node {
283-
type: "doctype"
283+
type: 'doctype'
284284
name: string
285285
public: string?
286286
system: string?
@@ -321,7 +321,7 @@ Yields:
321321

322322
```idl
323323
interface Instruction <: Literal {
324-
type: "instruction"
324+
type: 'instruction'
325325
name: string
326326
}
327327
```
@@ -351,7 +351,7 @@ Yields:
351351

352352
```idl
353353
interface Cdata <: Literal {
354-
type: "cdata"
354+
type: 'cdata'
355355
}
356356
```
357357

0 commit comments

Comments
 (0)