summaryrefslogtreecommitdiffhomepage
path: root/docs/crandom_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-24 23:53:56 +0200
committerTyge Løvset <[email protected]>2022-04-24 23:53:56 +0200
commit1ebbd367675a4a25c82b27da75301846fa315f4c (patch)
tree53c2947afaac64ac6505d45bd577a9843241f029 /docs/crandom_api.md
parent81b541b85f85b48660ceb461b851f1fb09d68344 (diff)
downloadSTC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.tar.gz
STC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.zip
Updated docs to use cstr_str(&s) instead of s.str
Diffstat (limited to 'docs/crandom_api.md')
-rw-r--r--docs/crandom_api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/crandom_api.md b/docs/crandom_api.md
index 76b2379e..3e6ae8f0 100644
--- a/docs/crandom_api.md
+++ b/docs/crandom_api.md
@@ -105,7 +105,7 @@ int main()
size_t n = (size_t) (i.ref->second * StdDev * Scale * 2.5 / N);
if (n > 0) {
cstr_resize(&bar, n, '*');
- printf("%4d %s\n", i.ref->first, bar.str);
+ printf("%4d %s\n", i.ref->first, cstr_str(&bar));
}
}
// Cleanup