doc tutorial: fix the returning value correctly
doc tutorial: fix a typo

assigns ->
assign