From fa69f908eed28eafee1555d3dab47f283e32efd4 Mon Sep 17 00:00:00 2001 From: Jorge Espinoza Date: Wed, 11 Dec 2019 01:11:14 -0300 Subject: [PATCH] Move phrase to the correct paragraph If you begin a paragraph with the phrase "The same is true of runtime errors", the reader could think this paragraph is about runtime errors, but it's not (when I saw it, I was waiting for the runtime errors mention but it never appeared). So, saying that phrase in the previous paragraph makes more sense. --- book/book.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/book.tex b/book/book.tex index d0566d0..bcb361f 100644 --- a/book/book.tex +++ b/book/book.tex @@ -4145,11 +4145,11 @@ \section{Debugging} one space. But the error message points to {\tt y}, which is misleading. In general, error messages indicate where the problem was discovered, but the actual error might be earlier in the code, -sometimes on a previous line. +sometimes on a previous line. The same is true of runtime errors. \index{error!runtime} \index{runtime error} -The same is true of runtime errors. Suppose you are trying +Suppose you are trying to compute a signal-to-noise ratio in decibels. The formula is $SNR_{db} = 10 \log_{10} (P_{signal} / P_{noise})$. In Python, you might write something like this: