diff --git a/packages/flutter_preact_signals/README.md b/packages/flutter_preact_signals/README.md index 393b94db..18d63bc2 100644 --- a/packages/flutter_preact_signals/README.md +++ b/packages/flutter_preact_signals/README.md @@ -210,7 +210,7 @@ Futures can be converted to signals by either a method `futureToSignal` or as an ```dart import 'package:preact_signals/preact_signals.dart'; -void createStream() async* { +Stream createStream() async* { yield 1; yield 2; yield 3; diff --git a/packages/preact_signals/README.md b/packages/preact_signals/README.md index 0e760820..aac901bb 100644 --- a/packages/preact_signals/README.md +++ b/packages/preact_signals/README.md @@ -219,7 +219,7 @@ final stream = createStream(); final signal = stream.toSignal(); // or streamToSignal(stream) ``` -> This will return a sealed union based on `SignalState` that will return `SignalValue` for success, `SignalError` for errors (and `SignalTimeout` on optional timeout), and `SignalLoading`. +> This will return a sealed union based on `SignalState` that will return `SignalValue` for success, `SignalError` for errors, and `SignalLoading`. ## Example