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

[expr] Replace \^ with \caret #5816

Merged
merged 1 commit into from Sep 8, 2022
Merged

[expr] Replace \^ with \caret #5816

merged 1 commit into from Sep 8, 2022

Conversation

cpplearner
Copy link
Contributor

@cpplearner cpplearner commented Sep 7, 2022

\^ produces the circumflex accent ˆ instead of the ASCII character ^.

The \caret command was added after #205 points out that \^ produces a bad caret. PR #1902 fixed two uses of \^ that were added after #205 got fixed. But another two uses of \^ snuck in after that.

Given that \^ keeps reoccuring, there's currently no use of the diacritic ˆ in this document, and there's precedent of redefining \~ to mean something other than the diacritic, would it make sense to redefine \^ to mean the ASCII letter, or else add a check to prohibit \^?

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 8, 2022

Thank you! I suppose we could add a check, but then again, this is probably so rare that it's not worth the added complexity.

@tkoeppe tkoeppe merged commit 94dc5a7 into cplusplus:main Sep 8, 2022
@cpplearner cpplearner deleted the patch-1 branch September 8, 2022 17:50
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.

None yet

2 participants