Skip to content

Quick Start 'Run it' output doesn't match the example code #255

@runyaga

Description

@runyaga

Context

Minor README inconsistency that may confuse newbies checking their setup.

README shows

Code:

final result = await monty.run('2 + 2');
print(result.value); // 4

Then under "Run it":

$ dart run
Result: 4

Actual output

$ dart run
4

The code does `print(result.value)` which prints `4`, not `Result: 4`. The example/example.dart does `print('Result: ${result.value}')` which would print `Result: 4`, but that's not what the Quick Start code block shows.

Impact

  • Newbie: "It printed 4, but the README says it should print Result: 4. Did I do something wrong?"
  • Low severity but suggests the README wasn't tested end-to-end

Suggested fix

Change the "Run it" output to match the code:

$ dart run
4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions