Skip to content

正誤の指摘 p45 #11

@rookzeno

Description

@rookzeno

ページ番号:45
セクション番号:2.3.3
内容タイトル:列挙への型定義
誤っている内容:

func (s Season) Price(price float 64) 【bool】 {
    if s == Peak{
        return 【s】 + 200
    }
    return 【s】
}

正しい内容: float64とpriceだと思います
その他コメント:

Metadata

Metadata

Assignees

No one assigned

    Labels

    erattacorrect in next reprint.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions