mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Fix typos
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ Error :: enum i32 {
|
|||||||
|
|
||||||
// No_Progress is returned by some implementations of `io.Reader` when many calls
|
// No_Progress is returned by some implementations of `io.Reader` when many calls
|
||||||
// to `read` have failed to return any data or error.
|
// to `read` have failed to return any data or error.
|
||||||
// This is usually a signed of a broken `io.Reader` implementation
|
// This is usually a sign of a broken `io.Reader` implementation
|
||||||
No_Progress,
|
No_Progress,
|
||||||
|
|
||||||
Invalid_Whence,
|
Invalid_Whence,
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ remove_range :: proc(array: ^$D/[dynamic]$T, lo, hi: int, loc := #caller_locatio
|
|||||||
|
|
||||||
// `pop` will remove and return the end value of dynamic array `array` and reduces the length of `array` by 1.
|
// `pop` will remove and return the end value of dynamic array `array` and reduces the length of `array` by 1.
|
||||||
//
|
//
|
||||||
// Note: If the dynamic array as no elements (`len(array) == 0`), this procedure will panic.
|
// Note: If the dynamic array has no elements (`len(array) == 0`), this procedure will panic.
|
||||||
@builtin
|
@builtin
|
||||||
pop :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> (res: E) #no_bounds_check {
|
pop :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> (res: E) #no_bounds_check {
|
||||||
assert(len(array) > 0, loc=loc)
|
assert(len(array) > 0, loc=loc)
|
||||||
|
|||||||
Reference in New Issue
Block a user