Merge pull request #1251 from gradha/pr_misc_docs
Misc docs suggestions
This commit is contained in:
commit
d927eb5854
5 changed files with 102 additions and 9 deletions
|
|
@ -37,7 +37,8 @@
|
|||
## ## Piggyback on the already available string hash proc.
|
||||
## ##
|
||||
## ## Without this proc nothing works!
|
||||
## result = hash(x.firstName & x.lastName)
|
||||
## result = x.firstName.hash !& x.lastName.hash
|
||||
## result = !$result
|
||||
##
|
||||
## var
|
||||
## salaries = initTable[Person, int]()
|
||||
|
|
@ -848,7 +849,8 @@ when isMainModule:
|
|||
## Piggyback on the already available string hash proc.
|
||||
##
|
||||
## Without this proc nothing works!
|
||||
result = hash(x.firstName & x.lastName)
|
||||
result = x.firstName.hash !& x.lastName.hash
|
||||
result = !$result
|
||||
|
||||
var
|
||||
salaries = initTable[Person, int]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue