From fe6f6f58683b4e020c652b7efeb5e77d181d0e6c Mon Sep 17 00:00:00 2001 From: Dustin Newell Date: Thu, 21 Oct 2021 10:34:54 -0400 Subject: [PATCH] docs: clarify composable default name inference (#1318) --- docs/content/3.docs/2.directory-structure/5.composables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/3.docs/2.directory-structure/5.composables.md b/docs/content/3.docs/2.directory-structure/5.composables.md index cdd33d068c..18a5ce2ae7 100644 --- a/docs/content/3.docs/2.directory-structure/5.composables.md +++ b/docs/content/3.docs/2.directory-structure/5.composables.md @@ -24,9 +24,9 @@ Example: (using default export) ```js [composables/use-foo.ts or composables/useFoo.ts] import { useState } from '#app' -// It will be available as useFoo() +// It will be available as useFoo() (pascalCase of file name without extension) export default function () { - return 'foo' + return 'bar' } ```