浏览代码

README: Fix typo of missing parens (#1663)

Carl Johnson 3 年之前
父节点
当前提交
ad48e5168a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/docs/src/en/globals/alpine-data.md

+ 1 - 1
packages/docs/src/en/globals/alpine-data.md

@@ -60,7 +60,7 @@ export default function () => ({
 <a name="initial-parameters"></a>
 ## Initial parameters
 
-In addition to referencing `Alpine.data` providers by their name plainly (like `x-data="dropdown"`), you can also reference them as functions (`x-data="dropdown"`). By calling them as functions directly, you can pass in additional parameters to be used when creating the initial data object like so:
+In addition to referencing `Alpine.data` providers by their name plainly (like `x-data="dropdown"`), you can also reference them as functions (`x-data="dropdown()"`). By calling them as functions directly, you can pass in additional parameters to be used when creating the initial data object like so:
 
 ```html
 <div x-data="dropdown(true)">