mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
fixed some typos
This commit is contained in:
@@ -492,7 +492,7 @@ bool doSomethingWithAFile(const char* filename)
|
|||||||
{
|
{
|
||||||
FILE* fh = fopen(filename, "r"); // Open the file in read mode
|
FILE* fh = fopen(filename, "r"); // Open the file in read mode
|
||||||
if (fh == nullptr) // The returned pointer is null on failure.
|
if (fh == nullptr) // The returned pointer is null on failure.
|
||||||
reuturn false; // Report that failure to the caller.
|
return false; // Report that failure to the caller.
|
||||||
|
|
||||||
// Assume each function returns false if it failed
|
// Assume each function returns false if it failed
|
||||||
if (!doSomethingWithTheFile(fh)) {
|
if (!doSomethingWithTheFile(fh)) {
|
||||||
@@ -513,7 +513,7 @@ bool doSomethingWithAFile(const char* filename)
|
|||||||
{
|
{
|
||||||
FILE* fh = fopen(filename, "r");
|
FILE* fh = fopen(filename, "r");
|
||||||
if (fh == nullptr)
|
if (fh == nullptr)
|
||||||
reuturn false;
|
return false;
|
||||||
|
|
||||||
if (!doSomethingWithTheFile(fh))
|
if (!doSomethingWithTheFile(fh))
|
||||||
goto failure;
|
goto failure;
|
||||||
|
Reference in New Issue
Block a user