Skip to content

Page 261: Non-existant variable "l" (letter L) is used in code example. Should be "len" instead. #88

Description

@WraithGlade

This error is present in both the larger example box (below "Listing 9-17 illustrates how to assign a generic lambda into a variable and then use the lambda in two different template instantiations.") and also in the smaller example box (just below "Without a generic lambda, you’d have to declare the parameter types explicitly, like the following:").

PS: The font you're using makes it very hard to distinguish between the number 1 and the letter L in lowercase. For future reference, a font that doesn't suffer from this problem is Deja Vu Sans Mono (see https://en.wikipedia.org/wiki/DejaVu_fonts#Sans_Mono).

This may have contributed to people not spotting the error until now. It looks too much like a valid number.

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