Skip to content

[cyacc] Example given is wrong, should use turbofish #31

Closed
@lord-ne

Description

@lord-ne

In the cycle-accurate implementation (#28), the example code in the README has delay_ms<1000000>();. However, if you actually try to compile that line, you get the following error:

error: comparison operators cannot be chained:
  |
9 |     delay_ms<1000000>();
  |             ^       ^
  |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  |
9 |     delay_ms::<1000000>();
  |             ++

Changing it to delay_ms::<1000000>(); fixes the issue. Thus, that example (and any others) should be updated to use the "turbofish" operator ::< >

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