Skip to content

Clarify semantics of File::try_clone() #46578

Closed
@abonander

Description

@abonander

File::try_clone() could be clearer about how the duplicated file cursors behave. It currently says:

The returned File is a reference to the same state that this object references. Both handles will read and write with the same cursor position.

I think it could be much clearer about how reads, writes, and seeks will affect both handles.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsP-mediumMedium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions