Fix codify bigint suffix, adjust readme

This commit is contained in:
Andrew Morris
2023-03-20 18:29:01 +11:00
parent d2c437a9b6
commit 5b7a64049c
2 changed files with 3 additions and 1 deletions

View File

@@ -351,7 +351,7 @@ impl ValTrait for Val {
Val::Null => "null".into(),
Val::Bool(_) => self.val_to_string(),
Val::Number(_) => self.val_to_string(),
Val::BigInt(_) => self.val_to_string(),
Val::BigInt(_) => self.val_to_string() + "n",
Val::String(str) => stringify_string(str),
Val::Array(vals) => {
if vals.elements.len() == 0 {