讨论/综合讨论/348题Rust语言模板有问题/
348题Rust语言模板有问题

348题
切换到Rust语言以后,模板代码无法编译

impl TicTacToe {

    /** Initialize your data structure here. */
    fn new(n: i32) -> Self {
        
    }
    
    /** Player {player} makes a move at ({row}, {col}).
        @param row The row of the board.
        @param col The column of the board.
        @param player The player, can be either 1 or 2.
        @return The current winning condition, can be either:
                0: No one wins.
                1: Player 1 wins.
                2: Player 2 wins. */
    fn move(&self, row: i32, col: i32, player: i32) -> i32 {
        
    }
}

由于move是Rust的关键字,因此无法作为方法名。希望官方能够修改一下

展开讨论
caibirdme发起于 2019-10-24

非常感谢您的反馈,此问题已反馈相关部门会及时进行处理。给您带来的不便敬请谅解,感谢您对力扣的支持。