Skip to content

Fix and clarify From/Into tutorial example#81

Merged
atulkhare4096 merged 1 commit intomicrosoft:mainfrom
narslan:typo-c-cpp-book-ch11
Apr 11, 2026
Merged

Fix and clarify From/Into tutorial example#81
atulkhare4096 merged 1 commit intomicrosoft:mainfrom
narslan:typo-c-cpp-book-ch11

Conversation

@narslan
Copy link
Copy Markdown
Contributor

@narslan narslan commented Apr 7, 2026

This PR clarifies the explanation of the relationship between From and Into in the tutorial chapter ch11-from-and-into-traits.md.

It also fixes the commented alternate conversion example by replacing the invalid:

(40.42)::into()
with:
(40,42).into();

Clarify From/Into relationship in tutorial
Improve the wording around the `From` and `Into` relationship
  in `ch11-from-and-into-traits.md`.

 Also correct the commented alternate conversion example from
  `(40.42)::into()` to `let p: Point = (40,42).into();`.
@atulkhare4096 atulkhare4096 merged commit 75d79e9 into microsoft:main Apr 11, 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