I have used mappings in solidity for example this line is from solidity documentation

mapping(address => uint) shares;

here we are mapping addresses to uints and shares being the identifier of that mapping. But I came across this example

mapping(string => Asset) private assetStore; 

on online tutorial and that does not make any sense. Can you explain how this works or is there any syntax error?

1 Answer 1


> stands for > (gt = 'greater than', lt = 'less than' for the opposite effect)

I'd imagine this is a html copy/paste syntax error - replace > with > and you should be good to go!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.