From e19a681a1df63cb8af5dc5605b8a6626969032fe Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Thu, 26 Jan 2023 19:44:19 +0100 Subject: update cregex_test.c. Rename using_... to use_... --- docs/cspan_api.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/cspan_api.md') diff --git a/docs/cspan_api.md b/docs/cspan_api.md index 6da2acca..d1532d7b 100644 --- a/docs/cspan_api.md +++ b/docs/cspan_api.md @@ -10,12 +10,12 @@ See the c++ classes [std::span](https://en.cppreference.com/w/cpp/container/span ```c #include -using_cspan(SpanType, ValueType, Rank); // define SpanType with ValueType elements. - // Rank is number of dimensions (max 4) +use_cspan(SpanType, ValueType, Rank); // define SpanType with ValueType elements. + // Rank is number of dimensions (max 4) // Shorthands: -using_cspan2(S, ValueType); // define span types S, S2 with ranks 1, 2. -using_cspan3(S, ValueType); // define span types S, S2, S3 with ranks 1, 2, 3. -using_cspan4(S, ValueType); // define span types S, S2, S3, S4 with ranks 1, 2, 3, 4. +use_cspan2(S, ValueType); // define span types S, S2 with ranks 1, 2. +use_cspan3(S, ValueType); // define span types S, S2, S3 with ranks 1, 2, 3. +use_cspan4(S, ValueType); // define span types S, S2, S3, S4 with ranks 1, 2, 3, 4. ``` ## Methods Note that `cspan_multidim()`, `cmake_from*()`, `cspan_atN()`, `and cspan_subspanN()` require a (safe) cast to its span-type @@ -66,7 +66,7 @@ void SpanType_next(SpanTypeN_iter* it); #define i_val float #include -using_cspan3(Span, float); // Shorthand to define span types Span, Span2, and Span3. +use_cspan3(Span, float); // Shorthand to define span types Span, Span2, and Span3. int main() { -- cgit v1.2.3