From c4e1396684e92607f99f9c6f2bcbabf0a8f05376 Mon Sep 17 00:00:00 2001 From: aaron <83140718+centau@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:12:25 +0100 Subject: [PATCH] Fix typos --- docs/tut/crash-course/14-concepts.md | 4 ++-- docs/tut/crash-course/9-derived-source.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tut/crash-course/14-concepts.md b/docs/tut/crash-course/14-concepts.md index 0b9dc0c..24ca703 100644 --- a/docs/tut/crash-course/14-concepts.md +++ b/docs/tut/crash-course/14-concepts.md @@ -10,7 +10,7 @@ Stores a single value that can be updated. Created with `source()`. -# Derived Source +## Derived Source A new source composed of other sources. @@ -46,7 +46,7 @@ Created by: Reactive scopes do track sources and will rerun when those sources update. -New reactive scopes cannot be created within a reactive scope, but stable scopes +Reactive scopes cannot be created within a reactive scope, but stable scopes can. ## Scope Owners diff --git a/docs/tut/crash-course/9-derived-source.md b/docs/tut/crash-course/9-derived-source.md index ffcdaa9..12a89b2 100644 --- a/docs/tut/crash-course/9-derived-source.md +++ b/docs/tut/crash-course/9-derived-source.md @@ -32,7 +32,7 @@ end effect(function() text() end) effect(function() text() end) -source(1) -- prints "ran" x2 +count(1) -- prints "ran" x2 ``` To avoid this, you can use `derive()` to derive a new source instead. This will @@ -54,7 +54,7 @@ end) effect(function() text() end) effect(function() text() end) -source(1) -- prints "ran" x1 +count(1) -- prints "ran" x1 ``` `derive()` must also be called within a stable scope, just like `effect()`.