Skip to content

Commit

Permalink
Fix sample code.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelamud committed Jun 16, 2024
1 parent d1807c9 commit ba65559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions development/python-moeralib/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ a structure. These code snippets are equivalent:

```python
attrs = DomainAttributes()
attrs.domain = 'dave.moera.club'
attrs.name = 'dave.moera.club'
attrs.node_id = DAVE_NODE_ID
```
```python
attrs = DomainAttributes(
domain='dave.moera.club',
name='dave.moera.club',
node_id=DAVE_NODE_ID
)
```
Expand Down
4 changes: 2 additions & 2 deletions development/typescript-moeralib/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ converts them to JavaScript objects. The corresponding types are defined in

```typescript
const attrs: DomainAttributes = {
domain: 'dave.moera.club',
node_id: DAVE_NODE_ID
name: 'dave.moera.club',
nodeId: DAVE_NODE_ID
};
```

Expand Down

0 comments on commit ba65559

Please sign in to comment.