File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 233233 mutex_m (0.2.0 )
234234 net-http (0.4.1 )
235235 uri
236+ nokogiri (1.16.5-aarch64-linux )
237+ racc (~> 1.4 )
236238 nokogiri (1.16.5-arm64-darwin )
237239 racc (~> 1.4 )
238240 nokogiri (1.16.5-x64-mingw-ucrt )
285287 zeitwerk (2.6.7 )
286288
287289PLATFORMS
290+ aarch64-linux
288291 arm64-darwin-22
289292 arm64-darwin-23
290293 x64-mingw-ucrt
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ named argument นั้นมีประโยชน์เมื่อ paramet
3838แต่ถ้า argument ไม่ได้อยู่ในลำดับของ parameter ใน function จากซ้ายไปขวา แล้ว argument ที่เหลือจะต้องระบุชื่อทั้งหมด
3939
4040ในตัวอย่างข้างล่างนี้ named argument ทำให้เราสามารถเว้น parameter ` middle ` ได้\
41- แต่ในกรณีที่เกิด error เนื่องจาก argument ตัวแรกอยู่นอกลำดับของ parameter (ตัวแรกไม่ใช่ parameter ` first ` )\
41+ แต่ในกรณีที่เกิด ` error: positional after named argument ` \
42+ เนื่องจาก argument ตัวแรกไม่ได้เรียงตามลำดับของ parameter (ตัวแรกไม่ใช่ parameter ` first ` และ argument ตัวที่ 2 เป็นต้นไปก็ไม่ได้ระบุชื่อด้วย)\
4243ดังนั้น เราจะต้องระบุชื่อ argument ตั้งแต่ตัวที่ 2 เป็นต้นไป
4344
4445{% tabs named-arguments-when-error %}
You can’t perform that action at this time.
0 commit comments