diff --git a/doc/builtin/zero_type b/doc/builtin/zero_type index 6edca1ab16a6b3137e99afb945ba8b66600fc11a..36c31442a26bc66ef7b7d7e5f84acb6696b195a2 100644 --- a/doc/builtin/zero_type +++ b/doc/builtin/zero_type @@ -14,7 +14,7 @@ DESCRIPTION no such call_out could be found. Otherwize zero_type will return zero. KEYWORDS - int + int, mapping SEE ALSO find_call_out diff --git a/doc/manual/example1 b/doc/manual/example1 index 5600124036e280301d1e05e923385adfa6c45048..f86b5bfcf97c87c53f8a7934740b8b9496f8281e 100644 --- a/doc/manual/example1 +++ b/doc/manual/example1 @@ -82,7 +82,7 @@ int main(int argc, string *argv) { - if(argc > 2 && argv[1]=="--traditional") + if(argc > 1 && argv[1]=="--traditional") { write("hello world\n"); // old stype }else{ @@ -114,7 +114,7 @@ the command line (including the command itself) and argv is an array formed by these words. - if(argc > 2 && argv[1] == "--traditional") + if(argc > 1 && argv[1] == "--traditional") { write("hello world\n"); // old stype }else{ diff --git a/doc/types/mapping b/doc/types/mapping index 0077a6ce054292652bc3f3cb89b5b72d5235cf84..6ff371b7a323991ad08ea7d934ed124d45b4b503 100644 --- a/doc/types/mapping +++ b/doc/types/mapping @@ -35,7 +35,7 @@ DESCRIPTION ! a boolean not, returns 0 a[c] indexing, returns the value associated with the value c in the mapping a. If there is no index c in the mapping - zero will be returned. (With zero type = 1) + zero will be returned. (With zero_type = 1) a[c]=d setting, this associates d with c in the mapping, the index c will be added to the mapping automatically if it isn't already there. @@ -44,4 +44,5 @@ KEYWORDS types SEE ALSO - array, list, builtin/sizeof, builtin/indices, builtin/values + array, list, builtin/sizeof, builtin/indices, builtin/values, + builtin/zero_type