diff --git a/docs/esp8266/tutorial/network_basics.rst b/docs/esp8266/tutorial/network_basics.rst
index 42aed566427c02dcdab418c28b78c6b7679bb378..95d8cba4f9fe0b4d8f1e05fd8613abd179d21211 100644
--- a/docs/esp8266/tutorial/network_basics.rst
+++ b/docs/esp8266/tutorial/network_basics.rst
@@ -19,7 +19,7 @@ You can check if the interfaces are active by::
 
 You can also check the network settings of the interface by::
 
-    >>> ap.ifconfig()
+    >>> ap_if.ifconfig()
     ('192.168.4.1', '255.255.255.0', '192.168.4.1', '8.8.8.8')
 
 The returned values are: IP address, netmask, gateway, DNS.