Looks like an extra opening brace in the example code under How it works:
static void call_cb(const struct take_str_block *blk) {
{
(*blk->cb)(blk, "world");
}