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:

  1. // 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:

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

Regards,
Pawel

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training