Change "with" to "to" (#165)

Tiny grammar fix
This commit is contained in:
Edwin Amsler
2025-01-29 18:51:33 -06:00
committed by GitHub
parent 6f6e2c2a7b
commit 8209be6efc

View File

@@ -32,7 +32,7 @@ This is worth noting when reading docs: if you only see `ReadUntracked` and `Tra
## Working with Signals
You might notice that `.get()` and `.set()` can be implemented in terms of `.read()` and `.write()`, or `.with()` and `.update()`. In other words, `count.get()` is identical with `count.with(|n| n.clone())` or `count.read().clone()`, and `count.set(1)` is implemented by doing `count.update(|n| *n = 1)` or `*count.write() = 1`.
You might notice that `.get()` and `.set()` can be implemented in terms of `.read()` and `.write()`, or `.with()` and `.update()`. In other words, `count.get()` is identical to `count.with(|n| n.clone())` or `count.read().clone()`, and `count.set(1)` is implemented by doing `count.update(|n| *n = 1)` or `*count.write() = 1`.
But of course, `.get()` and `.set()` are nicer syntax.