diff --git a/README.md b/README.md index afecc87b8738c132b02620429fdad54af9577df0..27f2cdea725ded84879a37ae850ed541c92cd29b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > eh.. It's only a model. A dynamic library for making `malloc`, `calloc`, and `realloc` return `NULL` -during tests: +during tests. Let's start with an example: ```c #include <stdio.h> @@ -61,7 +61,7 @@ Also see [test/main.c](test/main.c) and [test/main.cpp](test/main.cpp). *Why, would I ever do such a thing?* Well, most people forget to check if `malloc` returns `NULL`, or that `new` can throw an exception. By using this -library you can put a ticking time-bomb under your tests, because it better +library you can put a ticking time-bomb under your tests, because it's better to fail early than in production. ## Usage @@ -98,8 +98,8 @@ of this library. ### Valgrind -Wiht valgrind, use the `--soname-synonyms=somalloc` flag, and compile and dynamic -link using the C++ version of the library if you are testing a C++ application. +When using valgrind, use the `--soname-synonyms=somalloc` flag, and compile or dynamic +link with the C++ version of the library if you are testing a C++ application. ``` valgrind --soname-synonyms=somalloc <binary> @@ -112,5 +112,3 @@ There are courently no workaround.. yet. ### Thread Safty The library is currently not thread-safe, use with causion. - -