Skip to content

Commit

Permalink
README.md formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim2266 authored Apr 15, 2020
1 parent 121aceb commit 9ba374d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ String composition:
str s = str_null;

str_join(&s, str_lit(", "),
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere"));
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere"));

str_cat(&s, s, str_lit("..."));

Expand All @@ -35,9 +35,9 @@ Composing strings and writing to a file:
FILE* const stream = fopen(...);
int err = str_join(stream, str_lit(", "),
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere..."));
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere..."));
if(err != 0) { /* handle the error */ }
Expand Down Expand Up @@ -141,9 +141,9 @@ str s = str_null;
// join the given string literals around the separator (second parameter),
// storing the result in object "s" (first parameter)
str_join(&s, str_lit(", "),
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere"));
str_lit("Here"),
str_lit("there"),
str_lit("and everywhere"));

// create a new string concatenating "s" and a literal; the function does not modify its
// destination object "s" before the result is computed, also freeing the destination
Expand Down

0 comments on commit 9ba374d

Please sign in to comment.