Skip to content

Fix typo in the comment of the first code example in ch05-data-struct…#43

Merged
atulkhare4096 merged 3 commits intomicrosoft:mainfrom
yb-xu:main
Mar 27, 2026
Merged

Fix typo in the comment of the first code example in ch05-data-struct…#43
atulkhare4096 merged 3 commits intomicrosoft:mainfrom
yb-xu:main

Conversation

@yb-xu
Copy link
Contributor

@yb-xu yb-xu commented Mar 26, 2026

This PR fixes a typo in a comment line of code snippet appeared on ch5 of the c-cpp book.

        // Initializes an array of 10 elements and sets all to 42
        let a : [u8; 3] = [42; 3];

It should be 3 elements. Not 10.

@atulkhare4096 atulkhare4096 merged commit 1484bf3 into microsoft:main Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants