summaryrefslogtreecommitdiffstats
path: root/doc/overview_code.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-10 16:00:29 -0400
committerDavid Robillard <d@drobilla.net>2023-05-10 18:27:55 -0400
commit67526c25f4a751be27d2f9eed38d07fe52342aa5 (patch)
tree69039501fb0c15d6386d2fe73174af47085f673f /doc/overview_code.c
parentff5104de74122477459b48df8b046d06d2db506b (diff)
downloadzix-67526c25f4a751be27d2f9eed38d07fe52342aa5.tar.gz
zix-67526c25f4a751be27d2f9eed38d07fe52342aa5.tar.bz2
zix-67526c25f4a751be27d2f9eed38d07fe52342aa5.zip
Add ZIX_STATIC_STRING()
Diffstat (limited to 'doc/overview_code.c')
-rw-r--r--doc/overview_code.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/overview_code.c b/doc/overview_code.c
index 1370292..2f6a099 100644
--- a/doc/overview_code.c
+++ b/doc/overview_code.c
@@ -1,4 +1,4 @@
-// Copyright 2021-2022 David Robillard <d@drobilla.net>
+// Copyright 2021-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
/*
@@ -26,8 +26,9 @@ string_views(void)
// end make-empty-string
// begin make-static-string
- ZixStringView hello = zix_string("hello");
+ static const ZixStringView hello = ZIX_STATIC_STRING("hello");
// end make-static-string
+ (void)hello;
// begin measure-string
ZixStringView view = zix_string(string_pointer);