author | Jakub Wilk
<jwilk@jwilk.net> 2016-07-20 16:56:42 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-07-20 20:01:04 UTC |
parent | fb7ddfda7498c9c84bec3731d5731f2f013948b9 |
doc/guide.rst | +1 | -1 |
doc/posix.rst | +2 | -2 |
diff --git a/doc/guide.rst b/doc/guide.rst index 7b3d2cb..b72cbc8 100644 --- a/doc/guide.rst +++ b/doc/guide.rst @@ -45,7 +45,7 @@ store a given file:: return true; } -With current disk sizes, it's very unusual to ran out of free space, which +With current disk sizes, it's very unusual to run out of free space, which makes the scenario where *free_space()* returns 0 hard to test. With libfiu, you can do the following small addition:: diff --git a/doc/posix.rst b/doc/posix.rst index b83b56d..1ce4ab3 100644 --- a/doc/posix.rst +++ b/doc/posix.rst @@ -2,7 +2,7 @@ Simulating failures in the POSIX API ==================================== -When developing robust sofware, developers often consider the cases when the +When developing robust software, developers often consider the cases when the classic POSIX functions return failure. Testing that fault-handling code is a problem because under normal conditions @@ -42,7 +42,7 @@ expected. When fortune is run, every *read()* has a 5% chance to fail, selecting an *errno* at random from the list of the ones that read() is allowed to return. -If you want to select an specific *errno*, you can do it by passing its +If you want to select a specific *errno*, you can do it by passing its numerical value using the *-i* parameter. The name of the failure points are fixed, and there is at least one for each