Skip to contentSkip to conversation

datastruct: Fix code citation typos

PATCH In review SeongJae Park 2 participants 2 messages Jul 31, 2016 – Aug 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 datastruct: Fix code citation typos

---
 datastruct/datastruct.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
datastruct/datastruct.tex +2 -2
index da735ae..4807223 100644
@@ -1089,7 +1089,7 @@ may be freed.
 
 The \co{->ht_idx} field on line~16 indicates which of the two sets of
 list pointers are being used by this instantiation of the hash table,
-and is used to index the \co{->hte_next[]} array in the \co{ht_bucket}
+and is used to index the \co{->hte_next[]} array in the \co{ht_elem}
 structure on line~3.
 
 The \co{->ht_hash_private}, \co{->ht_cmp()}, \co{->ht_gethash()},
@@ -1543,7 +1543,7 @@ Otherwise, line~19 picks up a reference to the current hash table,
 and lines~21-24 allocate a new hash table of the desired size.
 If a new set of hash/key functions have been specified, these are
 used for the new table, otherwise those of the old table are preserved.
-If line~25 detects memory-allocation failure, line~26 releases \co{->htlock}
+If line~25 detects memory-allocation failure, line~26 releases \co{->ht_lock}
 and line~27 returns a failure indication.
 
 Line~29 starts the bucket-distribution process by installing a reference
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · SeongJae Park

Good eyes, queued and pushed!

Thanx, Paul

Quoted 29 lines
---
 datastruct/datastruct.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
datastruct/datastruct.tex +2 -2
index da735ae..4807223 100644
@@ -1089,7 +1089,7 @@ may be freed.
 
 The \co{->ht_idx} field on line~16 indicates which of the two sets of
 list pointers are being used by this instantiation of the hash table,
-and is used to index the \co{->hte_next[]} array in the \co{ht_bucket}
+and is used to index the \co{->hte_next[]} array in the \co{ht_elem}
 structure on line~3.
 
 The \co{->ht_hash_private}, \co{->ht_cmp()}, \co{->ht_gethash()},
@@ -1543,7 +1543,7 @@ Otherwise, line~19 picks up a reference to the current hash table,
 and lines~21-24 allocate a new hash table of the desired size.
 If a new set of hash/key functions have been specified, these are
 used for the new table, otherwise those of the old table are preserved.
-If line~25 detects memory-allocation failure, line~26 releases \co{->htlock}
+If line~25 detects memory-allocation failure, line~26 releases \co{->ht_lock}
 and line~27 returns a failure indication.
 
 Line~29 starts the bucket-distribution process by installing a reference
Signature · 1 line
1.9.1