From 4250694e862e6e05445d21973bb79afbba97ff90 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 5 Dec 2023 15:53:24 -0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80e9b11f..63175c00 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ import 'package:web/web.dart'; void main() { final div = document.querySelector('div') as HTMLDivElement; - div.textContent = 'Text set at ${DateTime.now()}'; + div.text = 'Text set at ${DateTime.now()}'; } ```