Skip to content

Fix small typo in common.md #985

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

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cpp2/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Cpp2 supports using Cpp1 user-defined literals for compatibility, to support sea

- You can write a 'constexpr' function like `nm: (value: i64) -> my_nanometer_type == { /*...*/ }` that takes an integer and returns a value of a strongly typed "nanometer" type, and then create a `nm` value by writing either `nm(123)` or **`123.nm()`**.

Both **`123.n()`** and **`123.u8()`** are very similar to user-defined literal syntax, and more general.
Both **`123.nm()`** and **`123.u8()`** are very similar to user-defined literal syntax, and more general.

## Operators

Expand Down