Fix some cosmetic issues

This commit is contained in:
zah 2019-03-29 19:14:37 +02:00 committed by GitHub
parent bfaee50373
commit 3642b11699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -526,6 +526,7 @@ chronicles.expandIt(EncryptedEnvelope):
... ...
var e = EncryptedEnvelope(...) var e = EncryptedEnvelope(...)
# The following two statements are equivalent: # The following two statements are equivalent:
info "Received message", e info "Received message", e
info "Received message", peer = e.fromAddress, msg = e.decryptMsg info "Received message", peer = e.fromAddress, msg = e.decryptMsg
@ -538,12 +539,13 @@ syntax to construct the expanded property names:
```nim ```nim
chronicles.expandIt(User): chronicles.expandIt(User):
# You can use both identifiers and string literals: # You can use both identifiers and string literals:
`it Name"` = it.name `it Name` = it.name
`it "LastSeen"` = it.lastSeen `it "LastSeen"` = it.lastSeen
... ...
var alice = User(name: "Alice", ...) var alice = User(name: "Alice", ...)
# The following two statements are equivalent: # The following two statements are equivalent:
info "Sending message", recipient = alice info "Sending message", recipient = alice
info "Sending message", recipientName = alice.name, recipientLastSeen = alice.lastSeen info "Sending message", recipientName = alice.name, recipientLastSeen = alice.lastSeen