Skip to content

Commit

Permalink
add documentation for double backslash in field strings
Browse files Browse the repository at this point in the history
  • Loading branch information
philshafer committed Jun 2, 2021
1 parent 257c23d commit ba3eed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/core/test_02.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ main (int argc, char **argv)
for (i = 0; i < 5; i++)
xo_emit("{lw:bytes/%d}{Np:byte,bytes}\n", i);

xo_emit("{Lc:Low\\/warn granularity}{P:\t}{:granularity-lw/%d}{Uw:/%sh}\n",
155, "mA");

xo_emit("{:mbuf-current/%u}/{:mbuf-cache/%u}/{:mbuf-total/%u} "
"{N:mbufs <&> in use (current\\/cache\\/total)}\n",
Expand Down

0 comments on commit ba3eed4

Please sign in to comment.