Skip to content

Commit cb639f6

Browse files
committed
docs(README): Use spacing consistently on code snippets
1 parent d4dcc73 commit cb639f6

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
indent_size = 2

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ The number type works with floats. If no `defaultValue` is provided, it will pas
145145
let num1 = Knobs.number(~label="Number 1", ());
146146
let num2 =
147147
Knobs.number(
148-
~label="Number 2",
149-
~rangeConfiguration={range: true, min: 0., max: 10., step: 1.},
150-
()
148+
~label="Number 2",
149+
~rangeConfiguration={range: true, min: 0., max: 10., step: 1.},
150+
()
151151
);
152152
```
153153

@@ -195,18 +195,18 @@ let obj = Knobs.object_(~label="User", ~defaultValue={"color": "grey"}, ());
195195
```reason
196196
let options =
197197
Js.Dict.fromArray([|
198-
("Red", "red"),
199-
("Blue", "blue"),
200-
("Yellow", "yellow"),
201-
("None", ""),
198+
("Red", "red"),
199+
("Blue", "blue"),
200+
("Yellow", "yellow"),
201+
("None", ""),
202202
|]);
203203
204204
let color =
205205
Knobs.selectFromDict(
206-
~label="MySelection",
207-
~options,
208-
~defaultValue="red",
209-
(),
206+
~label="MySelection",
207+
~options,
208+
~defaultValue="red",
209+
(),
210210
);
211211
```
212212

@@ -215,9 +215,9 @@ let color =
215215
```reason
216216
let color =
217217
Knobs.selectFromArray(
218-
~label="MySelection",
219-
~options=[|"red", "blue", "yellow"|],
220-
~defaultValue="red",
221-
(),
218+
~label="MySelection",
219+
~options=[|"red", "blue", "yellow"|],
220+
~defaultValue="red",
221+
(),
222222
);
223223
```

0 commit comments

Comments
 (0)