Skip to content

Commit

Permalink
Some minor updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylov committed Jan 5, 2025
1 parent a49c878 commit 077b423
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/cspan_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ using_cspan3(Span, int); // Shorthand to define Span, Span2, and Span3
int main(void)
{
Span span = c_init(Span, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Span span = c_make(Span, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24});
Span3 span3 = cspan_md(span.data, 2, 4, 3);
Expand Down
2 changes: 1 addition & 1 deletion docs/hmap_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ In example 4 we needed to construct a lookup key which may allocate strings, and
In this example we use keyraw feature to make it simpler to use and avoids the creation of a Viking object
entirely when doing lookup.

[ [Run this code](https://godbolt.org/z/18v5vYq4M) ]
[ [Run this code](https://godbolt.org/z/Yx1Ybhxqv) ]
```c++
#include "stc/cstr.h"

Expand Down
4 changes: 0 additions & 4 deletions include/stc/coroutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ static inline int _cco_cancel_task(cco_task* task, cco_runtime* rt)
cco_yield_v(CCO_NOOP); \
} while (0)

/* Create and push a sumtype variant task into a container, return the task ptr (not the sumtype) */
#define cco_push_variant(TaskContainerType, containerPtr, TaskTag, ...) \
&TaskContainerType##_push(containerPtr, c_variant(TaskTag, __VA_ARGS__))->TaskTag.var

/*
* Taskrunner
*/
Expand Down

0 comments on commit 077b423

Please sign in to comment.