mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
A few examples in the web site docs use `ConsoleService::new().log()` or
similar calls, but the correct call is `ConsoleService::log()`. This
change fixes all such instances.
This also fixes uses of `format!()` as a parameter to `ConsoleService`
logging. `log()` and friends require a ref, so the following is correct:
```rust
ConsoleService::info(format!("Update: {:?}", msg).as_ref());
```
I fixed examples for current even though I cannot find `ConsoleService`
in the master branch. I figure my change is no less correct than what
was already there.