Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit 2625284

Browse files
committed
Merge remote-tracking branch 'topic/etyp/cleanup-example'
2 parents 6f136ea + d0d38cc commit 2625284

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Local Previewing (How To Build)
7575

7676
First make sure you have the required dependencies used for building docs:
7777

78-
* Python interpreter >= 3.7
78+
* Python interpreter >= 3.9
7979
* Sphinx: https://www.sphinx-doc.org/en/master/
8080
* Read the Docs Sphinx Theme: https://github.com/rtfd/sphinx_rtd_theme
8181
* GitPython: https://github.com/gitpython-developers/GitPython

install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ development headers for libraries:
175175
* Libpcap (http://www.tcpdump.org)
176176
* Make
177177
* OpenSSL (http://www.openssl.org)
178-
* Python 3.7 or greater (https://www.python.org/)
178+
* Python 3.9 or greater (https://www.python.org/)
179179
* SWIG (http://www.swig.org)
180180
* Zlib (https://zlib.net/)
181181

script-reference/statements.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -718,29 +718,29 @@ Example:
718718
.. code-block:: zeek
719719
720720
local myset = set(80/tcp, 81/tcp);
721-
local mytable = table([10.0.0.1, 80/tcp]="s1", [10.0.0.2, 81/tcp]="s2");
722-
local myvector = vector("zero", "one, "two");
721+
local mytable = table([ 10.0.0.1, 80/tcp ] = "s1", [ 10.0.0.2, 81/tcp ] = "s2");
722+
local myvector = vector("zero", "one", "two");
723723
724724
for ( p in myset )
725725
print p;
726726
727-
for ( [i,j], val in mytable )
727+
for ( [ip, p], val in mytable )
728728
{
729-
if (val == "done")
729+
if ( val == "done" )
730730
break;
731-
if (val == "skip")
731+
if ( val == "skip" )
732732
next;
733-
print i,j;
733+
print ip, p;
734734
}
735735
736736
for ( _, val in mytable )
737737
print val;
738738
739-
for ( [i,_], _ in mytable )
740-
print i;
739+
for ( [ip, _], _ in mytable )
740+
print ip;
741741
742742
for ( i, val in myvector )
743-
print i,val;
743+
print i, val;
744744
745745
for ( _, val in myvector )
746746
print val;

0 commit comments

Comments
 (0)