Skip to content

Mistake in the Windows command line code in the Rust book #33219

Closed
@TomasHubelbauer

Description

@TomasHubelbauer

In the Getting Started section of the Rust book, there's this snippet under Creating a new Executable and Source Directory:

$ mkdir src
$ mv main.rs src/main.rs
$ rm main  # or 'del main.exe' on Windows

On Windows, there's no mv, just move. The mv and other commands are available when one uses Cygwin or similar, but the book says nothing about that, so it should be fixed to include a comment similarly to the line underneath it.

$ mkdir src
$ mv main.rs src/main.rs # or 'move main.rs src/main.rs' on Window
$ rm main  # or 'del main.exe' on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions