Mercurial > blog
changeset 150:0ba8bd17df48
Fixed spelling.
author | Oleksandr Gavenko <gavenkoa@gmail.com> |
---|---|
date | Tue, 23 Oct 2018 00:18:37 +0300 |
parents | ed358312ab29 |
children | 0ab970af9f23 |
files | f56b41cb-6e3a-4da9-a52f-21bfab785c90/index.rst fe640f31-c6b5-435d-b7b7-28ff9d1fd598/index.rst |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/f56b41cb-6e3a-4da9-a52f-21bfab785c90/index.rst Tue Oct 23 00:16:03 2018 +0300 +++ b/f56b41cb-6e3a-4da9-a52f-21bfab785c90/index.rst Tue Oct 23 00:18:37 2018 +0300 @@ -8,9 +8,9 @@ Besides official Google phones, which have adb drivers, most of the phones don't have one to make connection via USB. -Of couse you can connect by adb via network but that's another story. +Of course you can connect by adb via network but that's another story. -So if you are lacky (or rich) and have official Android device just get latest official Google +So if you are lucky (or rich) and have official Android device just get latest official Google drivers from: https://developer.android.com/studio/run/win-usb.html
--- a/fe640f31-c6b5-435d-b7b7-28ff9d1fd598/index.rst Tue Oct 23 00:16:03 2018 +0300 +++ b/fe640f31-c6b5-435d-b7b7-28ff9d1fd598/index.rst Tue Oct 23 00:18:37 2018 +0300 @@ -60,7 +60,7 @@ } Above code mixes recursion call with terminal values. Let's place recursion as final part of -function (making it suitable for tail resursion optimization):: +function (making it suitable for tail recursion optimization):: public static boolean findCause(Throwable t, Class <? extends Exception> cl) { if (cl.isInstance(t)) @@ -105,13 +105,13 @@ of indenting. Indenting is an indicator of more specialized, detailed code that at brief look should be ignored. -And more important, during code review and debugging you quickly movee your attention from +And more important, during code review and debugging you quickly move your attention from pre-conditions to main execution flow. I think that code should detect problems and interrupt execution (or move to processing next portion of information). -By using early checks with interruption of exection you guaranty that following code will operate +By using early checks with interruption of execution you guaranty that following code will operate with proper incoming state. You even don't need to guard checks itself. Instead of::