From 19a8a239b3d4bc965fabfe4d74e4895decea5283 Mon Sep 17 00:00:00 2001 From: Justin Vos Date: Mon, 18 Dec 2023 14:27:09 +0000 Subject: [PATCH 1/2] Add missing 'can' word --- langs/en/tutorials/async_lazy/lesson.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/en/tutorials/async_lazy/lesson.md b/langs/en/tutorials/async_lazy/lesson.md index af9fdf45..adf3cc64 100644 --- a/langs/en/tutorials/async_lazy/lesson.md +++ b/langs/en/tutorials/async_lazy/lesson.md @@ -9,7 +9,7 @@ with: const Greeting = lazy(() => import("./greeting")); ``` -This will likely still load too quickly to see. But you add a fake delay if you wish to make the loading more visible. +This will likely still load too quickly to see. But you can add a fake delay if you wish to make the loading more visible. ```js const Greeting = lazy(async () => { From e0032fefb83e907793c2b0c38b758789605bef6d Mon Sep 17 00:00:00 2001 From: Justin Vos Date: Mon, 18 Dec 2023 14:27:30 +0000 Subject: [PATCH 2/2] Correct spelling of 'valueAccessor' to match --- langs/en/tutorials/bindings_directives/lesson.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/en/tutorials/bindings_directives/lesson.md b/langs/en/tutorials/bindings_directives/lesson.md index 5b144d3a..a3209679 100644 --- a/langs/en/tutorials/bindings_directives/lesson.md +++ b/langs/en/tutorials/bindings_directives/lesson.md @@ -1,6 +1,6 @@ Solid supports custom directives through the `use:` namespace. This is just a syntactic sugar over `ref`, but is useful in that it resembles typical bindings and there can be multiple bindings on the same element without conflict. This makes it a better tool for reusable DOM element behavior. -A custom directive is a function taking arguments `(element, valueAccesor)`, where `element` is the DOM element with the `use:` attribute, and `valueAccessor` is a getter function for the value assigned to the attribute. As long as the function is imported in scope, you can use it with `use:`. +A custom directive is a function taking arguments `(element, valueAccessor)`, where `element` is the DOM element with the `use:` attribute, and `valueAccessor` is a getter function for the value assigned to the attribute. As long as the function is imported in scope, you can use it with `use:`. > Important: `use:` is detected by the compiler to be transformed, and the function is required to be in scope, so it cannot be part of spreads or applied to a component.