aboutsummaryrefslogtreecommitdiff
path: root/api/str.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 14:28:19 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 14:28:19 +0100
commit09d398c748c2707918c9f531b91d161b08cb1163 (patch)
tree7cdbf4b8d01c829b1cc7508b4f051b371cac20ec /api/str.c
parent82bd4d7d640039f2e073f1de883d55131e1d5b38 (diff)
downloaduwu-lang-09d398c748c2707918c9f531b91d161b08cb1163.tar.xz
Code format
Diffstat (limited to 'api/str.c')
-rw-r--r--api/str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/str.c b/api/str.c
index c634fc2..37b8e70 100644
--- a/api/str.c
+++ b/api/str.c
@@ -7,7 +7,7 @@ UwUVMValue uwustr_create(const char *value)
return (UwUVMValue) {
.type = VT_STR,
.value = {
- .str_value = strdup(value),
+ .str_value = strdup(value),
},
};
}
@@ -23,7 +23,7 @@ char *uwustr_get(UwUVMValue vm_value)
case VT_REF:
return asprintf_wrapper("[Function reference: %p]", vm_value.value.ref_value);
-
+
case VT_NAT:
return vm_value.value.nat_value.type->print
? vm_value.value.nat_value.type->print(vm_value.value.nat_value.data)