From b85ce9c41788d2ec2edfa30029880ed96c63f956 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Mon, 21 Mar 2022 16:55:29 +0100 Subject: [PATCH] docs: update example in README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 1dc6f8c0..9412a8c1 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,9 @@ To do so, a Thing Description JSON string is first parsed and turned into a `Servient` with CoAP support. ```dart -import 'dart:async'; - import 'package:dart_wot/dart_wot.dart'; -FutureOr main(List args) async { +Future main(List args) async { final CoapClientFactory coapClientFactory = CoapClientFactory(null); final servient = Servient()..addClientFactory(coapClientFactory); final wot = await servient.start();