Skip to content

Fix and clarify From/Into tutorial example#81

Open
narslan wants to merge 1 commit intomicrosoft:mainfrom
narslan:typo-c-cpp-book-ch11
Open

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

Conversation

@narslan
Copy link
Copy Markdown

@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();`.
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