Hash Table examples - hashq takes different number of arguments
authorBrian Gough <bjg@network-theory.co.uk>
Mon, 14 Dec 2009 22:19:32 +0000 (22:19 +0000)
committerNeil Jerram <neil@ossau.uklinux.net>
Fri, 18 Dec 2009 00:49:20 +0000 (00:49 +0000)
In the "Hash Tables Example" in the manual, hashq needs 2 arguments
instead of 1 (patch below).  I've updated the hash table output as
well to match the current version.

--
Brian Gough

Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/

>From fdb6101d2e064620746ebfc9f9cd28bbdd2470e8 Mon Sep 17 00:00:00 2001
From: Brian Gough <bjg@gnu.org>
Date: Mon, 14 Dec 2009 19:59:32 +0000
Subject: [PATCH] update docs for Hash Table Examples
 hashq now takes two arguments
 order of elements in hash table is different now

doc/ref/api-compound.texi

index 059390b..aaba00b 100644 (file)
 ;; entry is at index (hashq 'frob).
 h
 @result{}
-#(() () () () ((frob . #f) (braz . "zonk")) () ((foo . "bar")))
+#(((braz . "zonk")) ((foo . "bar")) () () () () ((frob . #f)))
 
-(hashq 'frob)
+(hashq 'frob 7)
 @result{}
-4
+6
 
 @end lisp