about summary refs log tree commit diff
path: root/library/std/src/sys/unix/args.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-25 10:45:56 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-25 10:52:05 +1100
commita79a2c729df5086a64c2aaf6c77c0ce582cb1499 (patch)
treea17464bb14935025b689091c83246d22338aeed5 /library/std/src/sys/unix/args.rs
parent40797eef5ea3f8d50c98fbb81b0c005f7a358539 (diff)
downloadrust-a79a2c729df5086a64c2aaf6c77c0ce582cb1499.tar.gz
rust-a79a2c729df5086a64c2aaf6c77c0ce582cb1499.zip
tidy: some minor improvements.
- Tweak some comments.
- No need to do the `concat!` trick on `START_MARKER` because it's
  immediately followed by `END_MARKER`.
- Fix an off-by-one error in the line number for an error message.
- When a second start marker is found without an intervening end marker,
  after giving an error, treat it as though it ends the section. It's
  hard to know exactly what to do in this case, but it makes unit
  testing this case a little simpler (in the next commit).
- If an end marker occurs without a preceding start marker, issue an
  error.
Diffstat (limited to 'library/std/src/sys/unix/args.rs')
0 files changed, 0 insertions, 0 deletions