Skip to content

Commit 9f2e2e7

Browse files
authored
docs: fix typo: lenghth --> length. (#906)
* Fix typo: lenghth --> length. * Fix the same spelling error in concepts/functions/introduction.md. * Add space between semi-colom and closing brace.
1 parent 5b7ef3f commit 9f2e2e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

concepts/functions/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Stubborn {
6666
response = reply;
6767
}
6868
string answer(const string& question) const {
69-
if (question.lenghth() == 0) { return "";}
69+
if (question.length() == 0) { return ""; }
7070
return response;
7171
}
7272
private:

exercises/concept/lasagna-master/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Stubborn {
6666
response = reply;
6767
}
6868
string answer(const string& question) const {
69-
if (question.lenghth() == 0) { return "";}
69+
if (question.length() == 0) { return ""; }
7070
return response;
7171
}
7272
private:

0 commit comments

Comments
 (0)