diff --git a/docs/scripting.xml b/docs/scripting.xml
index b7cd27eae..66c319eec 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -1204,7 +1204,7 @@ socket:close()
kept, the more scripts may receive the packet and proceed with
their execution. To use the packet capturing inside your
script you have to create a socket with
- nmap.newsocket() and later close the socket
+ nmap.new_socket() and later close the socket
with socket_object:close()—just like
with the connection-based network I/O.