Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Column number should start at 1 and not 0 #17

Closed
@GodTamIt

Description

@GodTamIt

Given this code:

let snippet = Snippet {    title: Some("failed to parse file".to_owned()),    footer: vec![],    slices: vec![Slice {        source: r#"This is an examplecontent of the slicewhich will be annotatedwith the list of annotations below."#            .to_string(),        line_start: 26,        origin: Some("chris.beep".to_owned()),        fold: false,        annotations: vec![SourceAnnotation {            label: "hello world".to_owned(),            annotation_type: AnnotationType::Error,            range: (13, 20),        }],    }],};

This results in the following output:

error: failed to parse file  --> chris.beep:26:13   |26 | This is an example   |              ^^^^^^^ hello world27 | content of the slice28 | which will be annotated29 | with the list of annotations below.

Because the output should be for humans, shouldn't the location bechris.beep:26:14?

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp