Skip to content

Commit c8a683f

Browse files
eitlaneColin Robertson
authored andcommitted
Update constructors-cpp.md (MicrosoftDocs#369)
Fixing typo
1 parent 84bfbd4 commit c8a683f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/cpp/constructors-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ If any non-default constructors are declared, the compiler does not provide a de
145145

146146
```cpp
147147
class Box {
148+
public:
148149
Box(int width, int length, int height)
149150
: m_width(width), m_length(length), m_height(height){}
150-
};
151151
private:
152152
int m_width;
153153
int m_length;
@@ -680,4 +680,4 @@ int main(){
680680
// passing a temporary label as an initializer list
681681
StorageBox sb3(1, 2, 3, {"myname", "myaddress"});
682682
}
683-
```
683+
```

0 commit comments

Comments
 (0)