NewbDude
NewbDude

Reputation: 1

Is -> equivalentto -> in erlang?

I came across this piece of code in erlang examples and I don't seem to get it.

hello(_E,_I) ->
    "Text: Hello\r\n\r\n".

Why is it not written like this?

hello(_E,_I) ->
    "Text: Hello\r\n\r\n".

Thanks

Upvotes: 0

Views: 55

Answers (1)

bishop
bishop

Reputation: 39364

No, they are not equivalent. It should be "->".

So why is it like that? The

>

is how one represents ">" when writing HTML, so what you are seeing is a typographical oversight on part of the editor.

I recommend you mention the problem to that website's editorial staff. :)

Upvotes: 6

Related Questions