Skip to content

Commit

Permalink
Merge pull request wdas#96 from timgates42/bugfix_typos into main
Browse files Browse the repository at this point in the history
* timgates42/bugfix_typos:
  docs: Fix a few typos

Signed-off-by: David Aguilar <[email protected]>
  • Loading branch information
davvid committed Sep 10, 2021
2 parents 26310d6 + 9e48eed commit 412a481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tests/teststr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main(int argc,char *argv[])
int alive=p->lookupIndexedStr(stateAttr,"alive");
int dead=p->lookupIndexedStr(stateAttr,"dead");
int zombie=p->lookupIndexedStr(stateAttr,"zombie");
int states[]={alive,dead,zombie}; // every ith particle should be asigned these in order
int states[]={alive,dead,zombie}; // every ith particle should be assigned these in order
if(alive == -1 || dead == -1 || zombie == -1){ std::cerr<<"don't have tokens I expect!"<<std::endl;}

for(int i=0;i<p->numParticles();i++){
Expand Down
4 changes: 2 additions & 2 deletions src/tools/partjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def toJson(particleSet):
'value': particleSet.getFixed(attr),
}

# Convert indexed string attributse
# Convert indexed string attributes
if attr.type == partio.INDEXEDSTR:
fixedIndexedStrings[attr.name] = particleSet.fixedIndexedStrs(attr)

Expand All @@ -62,7 +62,7 @@ def toJson(particleSet):
attrs.append(attr)
attributes[attr.name] = {'type': attr.type, 'count': attr.count }

# Convert indexed string attributse
# Convert indexed string attributes
if attr.type == partio.INDEXEDSTR:
indexedStrings[attr.name] = particleSet.indexedStrs(attr)

Expand Down

0 comments on commit 412a481

Please sign in to comment.