From 695ace3665f1bc7655d40fe6cc02e56215b5a464 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 24 Jul 2019 08:50:15 -0400 Subject: [PATCH] Update 03-run-time.md --- site/content/docs/03-run-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 0c279874b9..6d5777aacd 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -247,7 +247,7 @@ count.update(n => n + 1); // logs '2' --- -If a function is passed as the second argument to the `writable` function, it will be called when the number of subscribers goes from zero to one (but not from one to two, etc). That function will be passed a `set` function which changes the value of the store. It must return a `stop` function that is called when the subscriber count goes from one to zero. +If a function is passed as the second argument, it will be called when the number of subscribers goes from zero to one (but not from one to two, etc). That function will be passed a `set` function which changes the value of the store. It must return a `stop` function that is called when the subscriber count goes from one to zero. ```js import { writable } from 'svelte/store';