瀏覽代碼

docs: Fix a few typos (#3363)

There are small typos in:
- packages/docs/src/en/advanced/extending.md
- tests/cypress/integration/plugins/navigate.spec.js

Fixes:
- Should read `specifying` rather than `specifing`.
- Should read `piece` rather than `peice`.
- Should read `persistent` rather than `persistant`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
Tim Gates 2 年之前
父節點
當前提交
11c63d18eb
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/docs/src/en/advanced/extending.md
  2. 1 1
      tests/cypress/integration/plugins/navigate.spec.js

+ 1 - 1
packages/docs/src/en/advanced/extending.md

@@ -228,7 +228,7 @@ Now if the directive is removed from this element or the element is removed itse
 ### Custom order
 ### Custom order
 
 
 By default, any new directive will run after the majority of the standard ones (with the exception of `x-teleport`). This is usually acceptable but some times you might need to run your custom directive before another specific one.
 By default, any new directive will run after the majority of the standard ones (with the exception of `x-teleport`). This is usually acceptable but some times you might need to run your custom directive before another specific one.
-This can be achieved by chaining the `.before() function to `Alpine.directive()` and specifing which directive needs to run after your custom one.
+This can be achieved by chaining the `.before() function to `Alpine.directive()` and specifying which directive needs to run after your custom one.
  
  
 ```js
 ```js
 Alpine.directive('foo', (el, { value, modifiers, expression }) => {
 Alpine.directive('foo', (el, { value, modifiers, expression }) => {

+ 1 - 1
tests/cypress/integration/plugins/navigate.spec.js

@@ -1,6 +1,6 @@
 import { beEqualTo, beVisible, haveAttribute, haveFocus, haveText, html, notBeVisible, test } from '../../utils'
 import { beEqualTo, beVisible, haveAttribute, haveFocus, haveText, html, notBeVisible, test } from '../../utils'
 
 
-// Test persistant peice of layout
+// Test persistent piece of layout
 // Handle non-origin links and such
 // Handle non-origin links and such
 // Handle 404
 // Handle 404
 // Middle/command click link in new tab works?
 // Middle/command click link in new tab works?