Welcome to the Linux Foundation Forum!

LFEL1002 error in listing

Hi,
I've spotted an error in Getting Started with Rust (LFEL1002) course.

In “Security Tools/Rust Security Tools/Security Tool Example” source code listing, this single line:

    // Perform the security check by scanning each line of the file for (line_number, line) in reader.lines().enumerate() {

should be two separate lines instead:

    // Perform the security check by scanning each line of the file
    for (line_number, line) in reader.lines().enumerate() {

Regards,
Pawel

Comments

  • fcioanca
    fcioanca Posts: 2,170

    This has been fixed. Thank you for flagging it.

Categories

Upcoming Training