Skip to content

Commit 72ee666

Browse files
committed
[minor] Add %c to format string substitution
Add (the missing) `%c` is sbustitution. This has always been generated from Chisel, it was just never put in the FIRRTL spec. Signed-off-by: Schuyler Eldridge <[email protected]>
1 parent b4ed75f commit 72ee666

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

revision-history.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ revisionHistory:
66
thisVersion:
77
spec:
88
- Correct grammar for modulus primitive operator.
9+
- Add `%c` format string substitution.
910
abi:
1011
# Information about the old versions. This should be static.
1112
oldVersions:

spec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,8 @@ Format strings support the following argument placeholders:
23292329

23302330
- `%b` : Prints the argument in binary
23312331

2332+
- `%c` : Prints the argument as an ASCII character
2333+
23322334
- `%d` : Prints the argument in decimal
23332335

23342336
- `%x` : Prints the argument in hexadecimal

0 commit comments

Comments
 (0)