Skip to content

Commit

Permalink
Fix a few small things in Getting Started doc
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldMaker committed Sep 8, 2024
1 parent 20c5595 commit 083a2c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ component and has no way to change it in the future.
In Butterfloat, static HTML looks _static_ and the only things that
can dynamically change things are RxJS Observables and other
Butterfloat components (which, if you are curious, are wired into
Observables). To add some dynamic changes to our we'll need to
Observables). To add some dynamic changes to our example we'll need to
_bind_ an Observable.

```tsx
Expand All @@ -241,7 +241,7 @@ function Main() {
const helloTo = concat(
of('World'),
interval(15_000 /* ms */).pipe(
map(() => greetable[Math.round(Math.random() * greetable.length)]),
map(() => greetable[Math.floor(Math.random() * greetable.length)]),
),
)

Expand Down Expand Up @@ -323,7 +323,7 @@ function Main() {
const helloTo = concat(
of('World'),
interval(15_000 /* ms */).pipe(
map(() => greetable[Math.round(Math.random() * greetable.length)]),
map(() => greetable[Math.floor(Math.random() * greetable.length)]),
),
)

Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('getting started documentation', () => {
const helloTo = concat(
of('World'),
interval(15_000 /* ms */).pipe(
map(() => greetable[Math.round(Math.random() * greetable.length)]),
map(() => greetable[Math.floor(Math.random() * greetable.length)]),
),
)

Expand Down Expand Up @@ -115,7 +115,7 @@ describe('getting started documentation', () => {
const helloTo = concat(
of('World'),
interval(15_000 /* ms */).pipe(
map(() => greetable[Math.round(Math.random() * greetable.length)]),
map(() => greetable[Math.floor(Math.random() * greetable.length)]),
),
)

Expand Down

0 comments on commit 083a2c4

Please sign in to comment.