diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-07 22:55:52 +0200 |
|---|---|---|
| committer | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-07 23:37:01 +0200 |
| commit | bf46117f1314653df3a70ede05aabcd599ce6b08 (patch) | |
| tree | a60f55188c5f0f8b31da51b1d4b8c2a8223198c1 /lib | |
| parent | ed23dad4877cd93fd684852b17e0e554ef71e297 (diff) | |
| download | zig-bf46117f1314653df3a70ede05aabcd599ce6b08.tar.gz zig-bf46117f1314653df3a70ede05aabcd599ce6b08.zip | |
std lib docs: fix null and int values
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/special/docs/main.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/std/special/docs/main.js b/lib/std/special/docs/main.js index b11e10caa7..9ec0b65c9b 100644 --- a/lib/std/special/docs/main.js +++ b/lib/std/special/docs/main.js @@ -542,8 +542,20 @@ } else { return value + ""; } + case typeKinds.Optional: + if(value === 'null'){ + if (wantHtml) { + return '<span class="tok-null">' + value + '</span>'; + } else { + return value + ""; + } + } else { + console.trace("TODO non-null optional value printing"); + return "TODO"; + } default: console.trace("TODO implement getValueText for this type:", zigAnalysis.typeKinds[typeObj.kind]); + return "TODO"; } } |
