diff --git a/doc/Section_howto.html b/doc/Section_howto.html
index 2d9cca3028..6e10009df7 100644
--- a/doc/Section_howto.html
+++ b/doc/Section_howto.html
@@ -1996,9 +1996,9 @@ variable pyz equal pyz
fix SS all ave/correlate $s $p $d &
v_pxy v_pxz v_pyz type auto file S0St.dat ave running
variable scale equal ${convert}/(${kB}*$T)*$V*$s*${dt}
-variable v11 equal trap(f_SS[3/)*${scale}
-variable v22 equal trap(f_SS[4/)*${scale}
-variable v33 equal trap(f_SS[5/)*${scale}
+variable v11 equal trap(f_SS[3])*${scale}
+variable v22 equal trap(f_SS[4])*${scale}
+variable v33 equal trap(f_SS[5])*${scale}
thermo_style custom step temp press v_pxy v_pxz v_pyz v_v11 v_v22 v_v33
run 100000
variable v equal (v_v11+v_v22+v_v33)/3.0
diff --git a/doc/Section_howto.txt b/doc/Section_howto.txt
index b02ef0b79b..ceaffe141f 100644
--- a/doc/Section_howto.txt
+++ b/doc/Section_howto.txt
@@ -1983,9 +1983,9 @@ variable pyz equal pyz
fix SS all ave/correlate $s $p $d &
v_pxy v_pxz v_pyz type auto file S0St.dat ave running
variable scale equal $\{convert\}/($\{kB\}*$T)*$V*$s*$\{dt\}
-variable v11 equal trap(f_SS\[3/])*$\{scale\}
-variable v22 equal trap(f_SS\[4/])*$\{scale\}
-variable v33 equal trap(f_SS\[5/])*$\{scale\}
+variable v11 equal trap(f_SS\[3\])*$\{scale\}
+variable v22 equal trap(f_SS\[4\])*$\{scale\}
+variable v33 equal trap(f_SS\[5\])*$\{scale\}
thermo_style custom step temp press v_pxy v_pxz v_pyz v_v11 v_v22 v_v33
run 100000
variable v equal (v_v11+v_v22+v_v33)/3.0