Skip to content

Commit

Permalink
docs: better var name for usage code example (#3228)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
xuzuodong and antfu committed Jul 30, 2023
1 parent dde4166 commit c792da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/math/useMax/index.md
Expand Up @@ -12,7 +12,7 @@ Reactive `Math.max`.
import { useMax } from '@vueuse/math'

const array = ref([1, 2, 3, 4])
const sum = useMax(array) // Ref<4>
const max = useMax(array) // Ref<4>
```

```ts
Expand All @@ -21,5 +21,5 @@ import { useMax } from '@vueuse/math'
const a = ref(1)
const b = ref(3)

const sum = useMax(a, b, 2) // Ref<3>
const max = useMax(a, b, 2) // Ref<3>
```
4 changes: 2 additions & 2 deletions packages/math/useMin/index.md
Expand Up @@ -12,7 +12,7 @@ Reactive `Math.min`.
import { useMin } from '@vueuse/math'

const array = ref([1, 2, 3, 4])
const sum = useMin(array) // Ref<1>
const min = useMin(array) // Ref<1>
```

```ts
Expand All @@ -21,5 +21,5 @@ import { useMin } from '@vueuse/math'
const a = ref(1)
const b = ref(3)

const sum = useMin(a, b, 2) // Ref<1>
const min = useMin(a, b, 2) // Ref<1>
```

0 comments on commit c792da9

Please sign in to comment.