1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 19:54:38 +02:00

Merge pull request #2273 from felipemfp/patch-1

[c++/pt-br] Fix some typos
This commit is contained in:
Adam Bard
2016-06-07 21:29:37 -07:00

View File

@@ -490,7 +490,7 @@ bool doSomethingWithAFile(const char* filename)
{
FILE* fh = fopen(filename, "r"); // Abra o arquivo em modo de leitura
if (fh == nullptr) // O ponteiro retornado é nulo em caso de falha.
reuturn false; // Relate o fracasso para o chamador.
return false; // Relate o fracasso para o chamador.
// Suponha cada função retorne false, se falhar
if (!doSomethingWithTheFile(fh)) {
@@ -511,7 +511,7 @@ bool doSomethingWithAFile(const char* filename)
{
FILE* fh = fopen(filename, "r");
if (fh == nullptr)
reuturn false;
return false;
if (!doSomethingWithTheFile(fh))
goto failure;