Skip to content

Commit c05307f

Browse files
dvandersluisbbatsov
authored andcommitted
Reorganize practices around files out of the "Exceptions" section
1 parent dd6d129 commit c05307f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,6 +2165,12 @@ rescue StandardError => e
21652165
end
21662166
----
21672167

2168+
=== Standard Exceptions [[standard-exceptions]]
2169+
2170+
Prefer the use of exceptions from the standard library over introducing new exception classes.
2171+
2172+
== Files
2173+
21682174
=== Reading from a file [[file-read]]
21692175

21702176
Use the convenience methods `File.read` or `File.binread` when only reading a file start to finish in a single operation.
@@ -2288,10 +2294,6 @@ end
22882294
FileUtils.rm_f(path)
22892295
----
22902296

2291-
=== Standard Exceptions [[standard-exceptions]]
2292-
2293-
Prefer the use of exceptions from the standard library over introducing new exception classes.
2294-
22952297
== Assignment & Comparison
22962298

22972299
=== Parallel Assignment [[parallel-assignment]]

0 commit comments

Comments
 (0)