diff --git a/index.html b/index.html
index 05f94cd..55f5047 100644
--- a/index.html
+++ b/index.html
@@ -256,11 +256,11 @@
getPorts() method
});
navigator.serial.addEventListener('connect', e => {
- // Add |e.port| to the UI or automatically connect.
+ // Add |e.target| to the UI or automatically connect.
});
navigator.serial.addEventListener('disconnect', e => {
- // Remove |e.port| from the UI. If the device was open the
+ // Remove |e.target| from the UI. If the device was open the
// disconnection can also be observed as a stream error.
});