diff --git a/docs/scripting.xml b/docs/scripting.xml
index 78f659c55..4c6f83f05 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -1659,7 +1659,7 @@ if(s) code_to_be_done_on_match end
against which the script is running. If the script is run
according to a host rule, then no port table is passed to the
script. Port states on the target can still be requested from Nmap
- using the nmap.getPortState() call.
+ using the nmap.get_port_state() call.