From 1a38f7108810228f2c507280aa1b4df5fda0a7f5 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Wed, 19 Jun 2024 01:38:14 +0900 Subject: [PATCH] Make the first code snippets look more real --- README.md | 4 ++-- flutter_ffi_plugin/README.md | 4 ++-- rust_crate/README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7103cd9b..f409ef9c 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ StreamBuilder( final myMessage = rustSignal.message; return Text(myMessage.currentNumber.toString()); }, -) +), ``` ```rust @@ -50,7 +50,7 @@ MyMessage { current_number: 7, other_bool: true, } -.send_signal_to_dart() +.send_signal_to_dart(); ``` Of course, the opposite way from Dart to Rust is also possible in a similar manner. diff --git a/flutter_ffi_plugin/README.md b/flutter_ffi_plugin/README.md index 7103cd9b..f409ef9c 100644 --- a/flutter_ffi_plugin/README.md +++ b/flutter_ffi_plugin/README.md @@ -42,7 +42,7 @@ StreamBuilder( final myMessage = rustSignal.message; return Text(myMessage.currentNumber.toString()); }, -) +), ``` ```rust @@ -50,7 +50,7 @@ MyMessage { current_number: 7, other_bool: true, } -.send_signal_to_dart() +.send_signal_to_dart(); ``` Of course, the opposite way from Dart to Rust is also possible in a similar manner. diff --git a/rust_crate/README.md b/rust_crate/README.md index 7103cd9b..f409ef9c 100644 --- a/rust_crate/README.md +++ b/rust_crate/README.md @@ -42,7 +42,7 @@ StreamBuilder( final myMessage = rustSignal.message; return Text(myMessage.currentNumber.toString()); }, -) +), ``` ```rust @@ -50,7 +50,7 @@ MyMessage { current_number: 7, other_bool: true, } -.send_signal_to_dart() +.send_signal_to_dart(); ``` Of course, the opposite way from Dart to Rust is also possible in a similar manner.