Skip to content

Typo in Code Snippet (ordeded_map instead of ordered_map) #949

Closed
@harshbhatt18

Description

@harshbhatt18

Url

https://aptos.dev/en/build/smart-contracts/maps

Describe the content issue

There is a misspelled word in the code snippet within the main function of the 0x42::map_usage module.

use aptos_framework::ordered_map;
let map = ordeded_map::new<u64, u64>();

correct version:

let map = ordered_map::new<u64, u64>();

However, the instantiation uses ordeded_map, which leads to a compilation error due to the typo.

Section

move-and-smart-contracts

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationmove-and-smart-contractsAll content under https://aptos.dev/en/build/smart-contracts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions