Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array concatenation example in the documentation #244

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

Dich0tomy
Copy link
Collaborator

As mentioned in #243 by @yval1,
the array concatenation example is buggy, because we're copying the wrong amount of elements second time.

Initially I simply gave into the suggestion of simply correcting the mistake and using proper
source container, but after a little bit of thought I changed copy to copy_backward which doesn't leave much more error for bugs and is more descriptive.

@Dich0tomy Dich0tomy merged commit 373c8d1 into Cpp4You:main Jan 30, 2024
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.

1 participant